Lines Matching refs:rhs
99 self_type& operator += (const self_type& rhs) { x += rhs.x; y += rhs.y; return *this; }
100 self_type& operator -= (const self_type& rhs) { x -= rhs.x; y -= rhs.y; return *this; }
101 self_type& operator *= (const self_type& rhs) { x *= rhs.x; y *= rhs.y; return *this; }
108 self_type operator + (const self_type& rhs) const { return self_type(x + rhs.x, y + rhs.y); }
109 self_type operator - (const self_type& rhs) const { return self_type(x - rhs.x, y - rhs.y); }
119 self_type& Lerp(const VEC2& lhs, const VEC2& rhs, f32 t) in Lerp()
121 return *VEC2Lerp(this, &lhs, &rhs, t); in Lerp()
169 self_type& Maximize(const VEC2& lhs, const VEC2& rhs) in Maximize()
171 return *VEC2Maximize(this, &lhs, &rhs); in Maximize()
178 self_type& Minimize(const VEC2& lhs, const VEC2& rhs) in Minimize()
180 return *VEC2Minimize(this, &lhs, &rhs); in Minimize()
199 bool operator == (const self_type& rhs) const { return x == rhs.x && y == rhs.y; }
202 bool operator != (const self_type& rhs) const { return x != rhs.x || y != rhs.y; }
373 operator * (f32 f, const VEC2& rhs) { return VEC2(f * rhs.x, f * rhs.y); }