Searched refs:Vector2 (Results 1 – 3 of 3) sorted by relevance
31 struct Vector2 { struct39 void operator+=(const Vector2& v) { argument44 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() argument84 Vector2 v = {x, y}; in copyNormalized()89 float dot(const Vector2& v) const { return x * v.x + y * v.y; } in dot() argument[all …]
47 static inline void set(Vertex* vertex, Vector2 val) { set(vertex, val.x, val.y); } in set()
14 using Vector2 = Vector<T, 2>; variable