Lines Matching refs:operator
102 operator f32*() { return &x; }
104 operator const f32*() const { return &x; }
111 self_type& operator += (const self_type& rhs) { (void)VEC3Add(this, this, &rhs); return *this; }
112 self_type& operator -= (const self_type& rhs) { (void)VEC3Sub(this, this, &rhs); return *this; }
113 … self_type& operator *= (const self_type& rhs) { (void)VEC3Mult(this, this, &rhs); return *this; }
114 self_type& operator *= (f32 f) { (void)VEC3Scale(this, this, f); return *this; }
115 self_type& operator /= (f32 f) { return operator*=(1.f / f); }
117 self_type operator + () const { return *this; }
118 self_type operator - () const { return self_type(-x, -y, -z); }
121 …self_type operator + (const self_type& rhs) const { VEC3 tmp; (void)VEC3Add(&tmp, this, &rhs); ret…
122 …self_type operator - (const self_type& rhs) const { VEC3 tmp; (void)VEC3Sub(&tmp, this, &rhs); ret…
123 self_type operator * (f32 f) const { VEC3 tmp; (void)VEC3Scale(&tmp, this, f); return tmp; }
124 self_type operator / (f32 f) const { f32 r = 1.f / f; return operator*(r); }
225 bool operator == (const self_type& rhs) const { return x == rhs.x && y == rhs.y && z == rhs.z; }
228 bool operator != (const self_type& rhs) const { return x != rhs.x || y != rhs.y || z != rhs.z; }
405 operator * (f32 f, const VEC3& rhs) { VEC3 tmp; (void)VEC3Scale(&tmp, &rhs, f); return tmp; }