Lines Matching refs:pt
26 static const SkScalar* AsScalars(const SkPoint& pt) { return &pt.fX; } in AsScalars() argument
32 static SkScalar DistanceToLineBetweenSqd(const SkPoint& pt, const SkPoint& a,
35 static SkScalar DistanceToLineBetween(const SkPoint& pt, const SkPoint& a,
37 return SkScalarSqrt(DistanceToLineBetweenSqd(pt, a, b, side));
40 static SkScalar DistanceToLineSegmentBetweenSqd(const SkPoint& pt, const SkPoint& a,
43 static SkScalar DistanceToLineSegmentBetween(const SkPoint& pt, const SkPoint& a, in DistanceToLineSegmentBetween() argument
45 return SkScalarSqrt(DistanceToLineSegmentBetweenSqd(pt, a, b)); in DistanceToLineSegmentBetween()
48 static SkScalar DistanceToSqd(const SkPoint& pt, const SkPoint& a) { in DistanceToSqd() argument
49 SkScalar dx = pt.fX - a.fX; in DistanceToSqd()
50 SkScalar dy = pt.fY - a.fY; in DistanceToSqd()
58 static bool EqualsWithinTolerance(const SkPoint& pt, const SkPoint& p, SkScalar tol) { in EqualsWithinTolerance() argument
59 return SkScalarNearlyZero(pt.fX - p.fX, tol) in EqualsWithinTolerance()
60 && SkScalarNearlyZero(pt.fY - p.fY, tol); in EqualsWithinTolerance()
63 static SkScalar LengthSqd(const SkPoint& pt) { in LengthSqd() argument
64 return SkPoint::DotProduct(pt, pt); in LengthSqd()
67 static void Negate(SkIPoint& pt) { in Negate() argument
68 pt.fX = -pt.fX; in Negate()
69 pt.fY = -pt.fY; in Negate()
79 static void RotateCCW(SkPoint* pt) { in RotateCCW() argument
80 RotateCCW(*pt, pt); in RotateCCW()
90 static void RotateCW(SkPoint* pt) { in RotateCW() argument
91 RotateCW(*pt, pt); in RotateCW()
94 static bool SetLengthFast(SkPoint* pt, float length);