Lines Matching refs:Vector2
88 struct Vector2 { struct
90 Vector2() : x_(0.0f), y_(0.0f) {} in Vector2() argument
91 Vector2(float inX, float inY) in Vector2() argument
93 friend Vector2 operator-(const Vector2& v)
95 return Vector2 { -v.x_, -v.y_ };
97 friend Vector2 operator+(const Vector2& a, const Vector2& b)
99 return Vector2 { a.x_ + b.x_, a.y_ + b.y_ };
101 friend Vector2 operator-(const Vector2& a, const Vector2& b)
103 return Vector2 { a.x_ - b.x_, a.y_ - b.y_ };
217 Matrix3 CreateTranslation(const Vector2& trans);
234 Vector2 Transform(const Vector2& vec, const Matrix3& mat);
241 Vector2 GetOriginScreenPoint(const Vector2& p, const Matrix4& mat);