46 constexpr int32_t
x()
const {
return fX; }
52 constexpr int32_t
y()
const {
return fY; }
65 void set(int32_t
x, int32_t
y) {
103 return fX ==
x &&
fY ==
y;
113 return a.fX ==
b.fX &&
a.fY ==
b.fY;
123 return a.fX !=
b.fX ||
a.fY !=
b.fY;
181 constexpr float x()
const {
return fX; }
187 constexpr float y()
const {
return fY; }
193 bool isZero()
const {
return (0 == fX) & (0 == fY); }
215 fX =
static_cast<float>(
x);
216 fY =
static_cast<float>(
y);
228 fX =
static_cast<float>(
p.fX);
229 fY =
static_cast<float>(
p.fY);
314 bool setNormalize(
float x,
float y);
423 return fX ==
x && fY ==
y;
433 return a.fX ==
b.fX &&
a.fY ==
b.fY;
443 return a.fX !=
b.fX ||
a.fY !=
b.fY;
456 return {
a.fX -
b.fX,
a.fY -
b.fY};
470 return {
a.fX +
b.fX,
a.fY +
b.fY};
485 static float Length(
float x,
float y);
509 return Length(
a.fX -
b.fX,
a.fY -
b.fY);
519 return a.fX *
b.fX +
a.fY *
b.fY;
533 return a.fX *
b.fY -
a.fY *
b.fX;
static const int points[]
static bool SkIsFinite(T x, Pack... values)
static constexpr int32_t Sk32_sat_sub(int32_t a, int32_t b)
static constexpr int32_t Sk32_sat_add(int32_t a, int32_t b)
#define setLength(p, len)
skia_private::AutoTArray< sk_sp< SkImageFilter > > filters TypedMatrix matrix TypedMatrix matrix SkScalar dx
static void Normalize(char *s)
double DotProduct(const Vector2dF &lhs, const Vector2dF &rhs)
double CrossProduct(const Vector2dF &lhs, const Vector2dF &rhs)
SIN Vec< N, float > abs(const Vec< N, float > &x)
SIN Vec< N, float > normalize(const Vec< N, float > &v)
void operator-=(const SkIVector &v)
constexpr int32_t y() const
void operator+=(const SkIVector &v)
friend bool operator!=(const SkIPoint &a, const SkIPoint &b)
SkIPoint operator-() const
friend bool operator==(const SkIPoint &a, const SkIPoint &b)
bool equals(int32_t x, int32_t y) const
friend SkIVector operator-(const SkIPoint &a, const SkIPoint &b)
static constexpr SkIPoint Make(int32_t x, int32_t y)
friend SkIPoint operator+(const SkIPoint &a, const SkIVector &b)
void set(int32_t x, int32_t y)
constexpr int32_t x() const
void iset(int32_t x, int32_t y)
static float CrossProduct(const SkVector &a, const SkVector &b)
friend bool operator!=(const SkPoint &a, const SkPoint &b)
friend SkPoint operator+(const SkPoint &a, const SkVector &b)
void iset(const SkIPoint &p)
void setAbs(const SkPoint &pt)
friend bool operator==(const SkPoint &a, const SkPoint &b)
SkPoint & operator*=(float scale)
SkPoint operator-() const
void offset(float dx, float dy)
static float DotProduct(const SkVector &a, const SkVector &b)
void operator-=(const SkVector &v)
float dot(const SkVector &vec) const
static constexpr SkPoint Make(float x, float y)
void set(float x, float y)
bool equals(float x, float y) const
static float Length(float x, float y)
static void Offset(SkPoint points[], int count, float dx, float dy)
SkPoint operator*(float scale) const
void operator+=(const SkVector &v)
float cross(const SkVector &vec) const
float distanceToOrigin() const
static float Distance(const SkPoint &a, const SkPoint &b)
friend SkVector operator-(const SkPoint &a, const SkPoint &b)
constexpr float y() const
constexpr float x() const
static void Offset(SkPoint points[], int count, const SkVector &offset)