Home
last modified time | relevance | path

Searched defs:SkV2 (Results 1 – 1 of 1) sorted by relevance

/external/skia/include/core/
DSkM44.h15 struct SK_API SkV2 { struct
18 bool operator==(const SkV2 v) const { return x == v.x && y == v.y; } argument
21 static SkScalar Dot(SkV2 a, SkV2 b) { return a.x * b.x + a.y * b.y; } in Dot() argument
22 static SkScalar Cross(SkV2 a, SkV2 b) { return a.x * b.y - a.y * b.x; } in Cross() argument
23 static SkV2 Normalize(SkV2 v) { return v * (1.0f / v.length()); } in Normalize() argument
43 SkScalar dot(SkV2 v) const { return Dot(*this, v); } in dot() argument
44 SkScalar cross(SkV2 v) const { return Cross(*this, v); } in cross() argument
45 SkV2 normalize() const { return Normalize(*this); } in normalize() argument
47 const float* ptr() const { return &x; } in ptr()
48 float* ptr() { return &x; } in ptr()