Lines Matching refs:v
43 void operator+=(const Vector2& v) {
44 x += v.x;
45 y += v.y;
48 void operator-=(const Vector2& v) {
49 x -= v.x;
50 y -= v.y;
53 void operator+=(const float v) {
54 x += v;
55 y += v;
58 void operator-=(const float v) {
59 x -= v;
60 y -= v;
73 Vector2 operator+(const Vector2& v) const {
74 return Vector2(x + v.x, y + v.y);
77 Vector2 operator-(const Vector2& v) const {
78 return Vector2(x - v.x, y - v.y);
96 Vector2 v(x, y); in copyNormalized()
97 v.normalize(); in copyNormalized()
98 return v; in copyNormalized()
101 float dot(const Vector2& v) const { in dot()
102 return x * v.x + y * v.y; in dot()