Home
last modified time | relevance | path

Searched refs:Vector2 (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/libs/hwui/
DVector.h31 struct Vector2 { struct
39 void operator+=(const Vector2& v) { argument
44 void operator-=(const Vector2& v) {
69 Vector2 operator+(const Vector2& v) const { return (Vector2){x + v.x, y + v.y}; }
71 Vector2 operator-(const Vector2& v) const { return (Vector2){x - v.x, y - v.y}; }
73 Vector2 operator/(float s) const { return (Vector2){x / s, y / s}; }
75 Vector2 operator*(float s) const { return (Vector2){x * s, y * s}; }
83 Vector2 copyNormalized() const { in copyNormalized() argument
84 Vector2 v = {x, y}; in copyNormalized()
89 float dot(const Vector2& v) const { return x * v.x + y * v.y; } in dot() argument
[all …]
DVertex.h47 static inline void set(Vertex* vertex, Vector2 val) { set(vertex, val.x, val.y); } in set()
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/
Deigen.h14 using Vector2 = Vector<T, 2>; variable