Lines Matching refs:operator
110 operator f32*() { return &x; }
112 operator const f32*() const { return &x; }
119 self_type& operator += (const self_type& rhs) { (void)VEC3Add(this, this, &rhs); return *this; }
120 self_type& operator -= (const self_type& rhs) { (void)VEC3Sub(this, this, &rhs); return *this; }
121 … self_type& operator *= (const self_type& rhs) { (void)VEC3Mult(this, this, &rhs); return *this; }
122 self_type& operator *= (f32 f) { (void)VEC3Scale(this, this, f); return *this; }
123 self_type& operator /= (f32 f) { return operator*=(1.f / f); }
125 self_type operator + () const { return *this; }
126 self_type operator - () const { return self_type(-x, -y, -z); }
129 …self_type operator + (const self_type& rhs) const { VEC3 tmp; (void)VEC3Add(&tmp, this, &rhs); ret…
130 …self_type operator - (const self_type& rhs) const { VEC3 tmp; (void)VEC3Sub(&tmp, this, &rhs); ret…
131 self_type operator * (f32 f) const { VEC3 tmp; (void)VEC3Scale(&tmp, this, f); return tmp; }
132 self_type operator / (f32 f) const { f32 r = 1.f / f; return operator*(r); }
233 bool operator == (const self_type& rhs) const { return x == rhs.x && y == rhs.y && z == rhs.z; }
236 bool operator != (const self_type& rhs) const { return x != rhs.x || y != rhs.y || z != rhs.z; }
413 operator * (f32 f, const VEC3& rhs) { VEC3 tmp; (void)VEC3Scale(&tmp, &rhs, f); return tmp; }