Searched defs:SkV2 (Results 1 – 1 of 1) sorted by relevance
15 struct SK_API SkV2 { struct18 bool operator==(const SkV2 v) const { return x == v.x && y == v.y; } argument21 static SkScalar Dot(SkV2 a, SkV2 b) { return a.x * b.x + a.y * b.y; } in Dot() argument22 static SkScalar Cross(SkV2 a, SkV2 b) { return a.x * b.y - a.y * b.x; } in Cross() argument23 static SkV2 Normalize(SkV2 v) { return v * (1.0f / v.length()); } in Normalize() argument43 SkScalar dot(SkV2 v) const { return Dot(*this, v); } in dot() argument44 SkScalar cross(SkV2 v) const { return Cross(*this, v); } in cross() argument45 SkV2 normalize() const { return Normalize(*this); } in normalize() argument47 const float* ptr() const { return &x; } in ptr()48 float* ptr() { return &x; } in ptr()