Lines Matching defs:xy
56 double SkDLine::exactPoint(const SkDPoint& xy) const {
57 if (xy == fPts[0]) { // do cheapest test first
60 if (xy == fPts[1]) {
66 double SkDLine::nearPoint(const SkDPoint& xy) const {
67 if (!AlmostBetweenUlps(fPts[0].fX, xy.fX, fPts[1].fX)
68 || !AlmostBetweenUlps(fPts[0].fY, xy.fY, fPts[1].fY)) {
74 SkDVector ab0 = xy - fPts[0];
81 SkDVector distU = xy - realPt;
96 double SkDLine::ExactPointH(const SkDPoint& xy, double left, double right, double y) {
97 if (xy.fY == y) {
98 if (xy.fX == left) {
101 if (xy.fX == right) {
108 double SkDLine::NearPointH(const SkDPoint& xy, double left, double right, double y) {
109 if (!AlmostEqualUlps(xy.fY, y)) {
112 if (!AlmostBetweenUlps(left, xy.fX, right)) {
115 double t = (xy.fX - left) / (right - left);
121 double SkDLine::ExactPointV(const SkDPoint& xy, double top, double bottom, double x) {
122 if (xy.fX == x) {
123 if (xy.fY == top) {
126 if (xy.fY == bottom) {
133 double SkDLine::NearPointV(const SkDPoint& xy, double top, double bottom, double x) {
134 if (!AlmostEqualUlps(xy.fX, x)) {
137 if (!AlmostBetweenUlps(top, xy.fY, bottom)) {
140 double t = (xy.fY - top) / (bottom - top);