Lines Matching refs:operator
90 operator f32*() { return &x; }
93 operator const f32*() const { return &x; }
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; }
102 self_type& operator *= (f32 f) { x *= f; y *= f; return *this; }
103 self_type& operator /= (f32 f) { f32 r = 1.f / f; x *= r; y *= r; return *this; }
105 self_type operator + () const { return *this; }
106 self_type operator - () const { return self_type(-x, -y); }
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); }
110 self_type operator * (f32 f) const { return self_type(f * x, f * y); }
111 self_type operator / (f32 f) const { f32 r = 1.f / f; return self_type(r * x, r * y); }
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); }