Lines Matching refs:rhs
107 self_type& operator += (const self_type& rhs) { x += rhs.x; y += rhs.y; return *this; }
108 self_type& operator -= (const self_type& rhs) { x -= rhs.x; y -= rhs.y; return *this; }
109 self_type& operator *= (const self_type& rhs) { x *= rhs.x; y *= rhs.y; return *this; }
116 self_type operator + (const self_type& rhs) const { return self_type(x + rhs.x, y + rhs.y); }
117 self_type operator - (const self_type& rhs) const { return self_type(x - rhs.x, y - rhs.y); }
127 self_type& Lerp(const VEC2& lhs, const VEC2& rhs, f32 t) in Lerp()
129 return *VEC2Lerp(this, &lhs, &rhs, t); in Lerp()
177 self_type& Maximize(const VEC2& lhs, const VEC2& rhs) in Maximize()
179 return *VEC2Maximize(this, &lhs, &rhs); in Maximize()
186 self_type& Minimize(const VEC2& lhs, const VEC2& rhs) in Minimize()
188 return *VEC2Minimize(this, &lhs, &rhs); in Minimize()
207 bool operator == (const self_type& rhs) const { return x == rhs.x && y == rhs.y; }
210 bool operator != (const self_type& rhs) const { return x != rhs.x || y != rhs.y; }
381 operator * (f32 f, const VEC2& rhs) { return VEC2(f * rhs.x, f * rhs.y); }