Lines Matching refs:pt
36 void add(const SkPoint& pt) { in add()
37 if (pt.fX < fLeft) fLeft = pt.fX; in add()
38 if (pt.fY < fTop) fTop = pt.fY; in add()
39 if (pt.fX > fRight) fRight = pt.fX; in add()
40 if (pt.fY > fBottom) fBottom = pt.fY; in add()
43 void add(const SkDPoint& pt) { in add()
44 if (pt.fX < fLeft) fLeft = SkDoubleToScalar(pt.fX); in add()
45 if (pt.fY < fTop) fTop = SkDoubleToScalar(pt.fY); in add()
46 if (pt.fX > fRight) fRight = SkDoubleToScalar(pt.fX); in add()
47 if (pt.fY > fBottom) fBottom = SkDoubleToScalar(pt.fY); in add()
50 bool almostContains(const SkPoint& pt) const { in almostContains()
51 return AlmostLessOrEqualUlps(fLeft, pt.fX) in almostContains()
52 && AlmostLessOrEqualUlps(pt.fX, fRight) in almostContains()
53 && AlmostLessOrEqualUlps(fTop, pt.fY) in almostContains()
54 && AlmostLessOrEqualUlps(pt.fY, fBottom); in almostContains()
57 bool contains(const SkPoint& pt) const { in contains()
58 return fLeft <= pt.fX && fTop <= pt.fY && in contains()
59 fRight >= pt.fX && fBottom >= pt.fY; in contains()