8#ifndef SkPointPriv_DEFINED
9#define SkPointPriv_DEFINED
51 return dx *
dx + dy * dy;
106 ((
SkPoint*)((intptr_t)v + 0 * stride))->set(l, t);
107 ((
SkPoint*)((intptr_t)v + 1 * stride))->set(l,
b);
108 ((
SkPoint*)((intptr_t)v + 2 * stride))->set(r,
b);
109 ((
SkPoint*)((intptr_t)v + 3 * stride))->set(r, t);
117 ((
SkPoint*)((intptr_t)v + 0 * stride))->set(l, t);
118 ((
SkPoint*)((intptr_t)v + 1 * stride))->set(l,
b);
119 ((
SkPoint*)((intptr_t)v + 2 * stride))->set(r, t);
120 ((
SkPoint*)((intptr_t)v + 3 * stride))->set(r,
b);
static bool SkIsFinite(T x, Pack... values)
static int side(double x)
static bool SkScalarNearlyZero(SkScalar x, SkScalar tolerance=SK_ScalarNearlyZero)
static void SetRectTriStrip(SkPoint v[], const SkRect &rect, size_t stride)
static void SetRectFan(SkPoint v[], SkScalar l, SkScalar t, SkScalar r, SkScalar b, size_t stride)
static const SkScalar * AsScalars(const SkPoint &pt)
static void SetRectTriStrip(SkPoint v[], SkScalar l, SkScalar t, SkScalar r, SkScalar b, size_t stride)
static SkPoint MakeOrthog(const SkPoint &vec, Side side=kLeft_Side)
static void RotateCCW(const SkPoint &src, SkPoint *dst)
static void RotateCW(const SkPoint &src, SkPoint *dst)
static SkScalar DistanceToLineBetween(const SkPoint &pt, const SkPoint &a, const SkPoint &b, Side *side=nullptr)
static bool SetLengthFast(SkPoint *pt, float length)
static bool CanNormalize(SkScalar dx, SkScalar dy)
static void RotateCCW(SkPoint *pt)
static SkScalar DistanceToLineSegmentBetween(const SkPoint &pt, const SkPoint &a, const SkPoint &b)
static SkScalar LengthSqd(const SkPoint &pt)
static void RotateCW(SkPoint *pt)
static SkScalar DistanceToLineSegmentBetweenSqd(const SkPoint &pt, const SkPoint &a, const SkPoint &b)
static bool AreFinite(const SkPoint array[], int count)
static bool EqualsWithinTolerance(const SkPoint &pt, const SkPoint &p, SkScalar tol)
static void Negate(SkIPoint &pt)
static bool EqualsWithinTolerance(const SkPoint &p1, const SkPoint &p2)
static SkScalar DistanceToLineBetweenSqd(const SkPoint &pt, const SkPoint &a, const SkPoint &b, Side *side=nullptr)
static SkScalar DistanceToSqd(const SkPoint &pt, const SkPoint &a)
sk_sp< SkBlender > blender SkRect rect
skia_private::AutoTArray< sk_sp< SkImageFilter > > filters TypedMatrix matrix TypedMatrix matrix SkScalar dx
static float DotProduct(const SkVector &a, const SkVector &b)