• Home
  • Raw
  • Download

Lines Matching refs:pt

26     static const SkScalar* AsScalars(const SkPoint& pt) { return &pt.fX; }  in AsScalars()  argument
36 static SkScalar DistanceToLineBetweenSqd(const SkPoint& pt, const SkPoint& a,
39 static SkScalar DistanceToLineBetween(const SkPoint& pt, const SkPoint& a,
41 return SkScalarSqrt(DistanceToLineBetweenSqd(pt, a, b, side));
44 static SkScalar DistanceToLineSegmentBetweenSqd(const SkPoint& pt, const SkPoint& a,
47 static SkScalar DistanceToLineSegmentBetween(const SkPoint& pt, const SkPoint& a, in DistanceToLineSegmentBetween() argument
49 return SkScalarSqrt(DistanceToLineSegmentBetweenSqd(pt, a, b)); in DistanceToLineSegmentBetween()
52 static SkScalar DistanceToSqd(const SkPoint& pt, const SkPoint& a) { in DistanceToSqd() argument
53 SkScalar dx = pt.fX - a.fX; in DistanceToSqd()
54 SkScalar dy = pt.fY - a.fY; in DistanceToSqd()
62 static bool EqualsWithinTolerance(const SkPoint& pt, const SkPoint& p, SkScalar tol) { in EqualsWithinTolerance() argument
63 return SkScalarNearlyZero(pt.fX - p.fX, tol) in EqualsWithinTolerance()
64 && SkScalarNearlyZero(pt.fY - p.fY, tol); in EqualsWithinTolerance()
67 static SkScalar LengthSqd(const SkPoint& pt) { in LengthSqd() argument
68 return SkPoint::DotProduct(pt, pt); in LengthSqd()
71 static void Negate(SkIPoint& pt) { in Negate() argument
72 pt.fX = -pt.fX; in Negate()
73 pt.fY = -pt.fY; in Negate()
83 static void RotateCCW(SkPoint* pt) { in RotateCCW() argument
84 RotateCCW(*pt, pt); in RotateCCW()
94 static void RotateCW(SkPoint* pt) { in RotateCW() argument
95 RotateCW(*pt, pt); in RotateCW()
98 static bool SetLengthFast(SkPoint* pt, float length);