• Home
  • Raw
  • Download

Lines Matching refs:SkPoint

22     static bool AreFinite(const SkPoint array[], int count) {  in AreFinite()
26 static const SkScalar* AsScalars(const SkPoint& pt) { return &pt.fX; } in AsScalars()
32 static SkScalar DistanceToLineBetweenSqd(const SkPoint& pt, const SkPoint& a,
33 const SkPoint& b, Side* side = nullptr);
35 static SkScalar DistanceToLineBetween(const SkPoint& pt, const SkPoint& a,
36 const SkPoint& b, Side* side = nullptr) {
40 static SkScalar DistanceToLineSegmentBetweenSqd(const SkPoint& pt, const SkPoint& a,
41 const SkPoint& b);
43 static SkScalar DistanceToLineSegmentBetween(const SkPoint& pt, const SkPoint& a, in DistanceToLineSegmentBetween()
44 const SkPoint& b) { in DistanceToLineSegmentBetween()
48 static SkScalar DistanceToSqd(const SkPoint& pt, const SkPoint& a) { in DistanceToSqd()
54 static bool EqualsWithinTolerance(const SkPoint& p1, const SkPoint& p2) { in EqualsWithinTolerance()
58 static bool EqualsWithinTolerance(const SkPoint& pt, const SkPoint& p, SkScalar tol) { in EqualsWithinTolerance()
63 static SkScalar LengthSqd(const SkPoint& pt) { in LengthSqd()
64 return SkPoint::DotProduct(pt, pt); in LengthSqd()
72 static void RotateCCW(const SkPoint& src, SkPoint* dst) { in RotateCCW()
79 static void RotateCCW(SkPoint* pt) { in RotateCCW()
83 static void RotateCW(const SkPoint& src, SkPoint* dst) { in RotateCW()
90 static void RotateCW(SkPoint* pt) { in RotateCW()
94 static bool SetLengthFast(SkPoint* pt, float length);
96 static SkPoint MakeOrthog(const SkPoint& vec, Side side = kLeft_Side) {
98 return (side == kRight_Side) ? SkPoint{-vec.fY, vec.fX} : SkPoint{vec.fY, -vec.fX};
102 static void SetRectFan(SkPoint v[], SkScalar l, SkScalar t, SkScalar r, SkScalar b, in SetRectFan()
104 SkASSERT(stride >= sizeof(SkPoint)); in SetRectFan()
106 ((SkPoint*)((intptr_t)v + 0 * stride))->set(l, t); in SetRectFan()
107 ((SkPoint*)((intptr_t)v + 1 * stride))->set(l, b); in SetRectFan()
108 ((SkPoint*)((intptr_t)v + 2 * stride))->set(r, b); in SetRectFan()
109 ((SkPoint*)((intptr_t)v + 3 * stride))->set(r, t); in SetRectFan()
113 static void SetRectTriStrip(SkPoint v[], SkScalar l, SkScalar t, SkScalar r, SkScalar b, in SetRectTriStrip()
115 SkASSERT(stride >= sizeof(SkPoint)); in SetRectTriStrip()
117 ((SkPoint*)((intptr_t)v + 0 * stride))->set(l, t); in SetRectTriStrip()
118 ((SkPoint*)((intptr_t)v + 1 * stride))->set(l, b); in SetRectTriStrip()
119 ((SkPoint*)((intptr_t)v + 2 * stride))->set(r, t); in SetRectTriStrip()
120 ((SkPoint*)((intptr_t)v + 3 * stride))->set(r, b); in SetRectTriStrip()
122 static void SetRectTriStrip(SkPoint v[], const SkRect& rect, size_t stride) { in SetRectTriStrip()