Searched defs:SkV3 (Results 1 – 1 of 1) sorted by relevance
51 struct SK_API SkV3 { struct54 bool operator==(const SkV3& v) const { argument59 static SkScalar Dot(const SkV3& a, const SkV3& b) { return a.x*b.x + a.y*b.y + a.z*b.z; } in Dot() argument60 static SkV3 Cross(const SkV3& a, const SkV3& b) { in Cross() argument63 static SkV3 Normalize(const SkV3& v) { return v * (1.0f / v.length()); } in Normalize() argument85 SkScalar dot(const SkV3& v) const { return Dot(*this, v); } in dot() argument86 SkV3 cross(const SkV3& v) const { return Cross(*this, v); } in cross() argument87 SkV3 normalize() const { return Normalize(*this); } in normalize() argument89 const float* ptr() const { return &x; } in ptr()90 float* ptr() { return &x; } in ptr()