Lines Matching defs:VEC3

68 struct VEC3 : public VEC3_  struct
74 static const VEC3& Zero() in Zero() argument
82 static const VEC3& One() in One() argument
89 typedef VEC3 self_type; // argument
97 VEC3() {} in VEC3() argument
98 explicit VEC3(const f32* p) { x = p[0]; y = p[1]; z = p[2]; } in VEC3() argument
100 VEC3(const VEC3_& v) { x = v.x; y = v.y; z = v.z; } in VEC3() function
102 VEC3(f32 fx, f32 fy, f32 fz) { x = fx; y = fy; z = fz; } in VEC3() function
129 …self_type operator + (const self_type& rhs) const { VEC3 tmp; (void)VEC3Add(&tmp, this, &rhs); ret… argument
130 …self_type operator - (const self_type& rhs) const { VEC3 tmp; (void)VEC3Sub(&tmp, this, &rhs); ret… argument
131 self_type operator * (f32 f) const { VEC3 tmp; (void)VEC3Scale(&tmp, this, f); return tmp; } argument
140 self_type& Lerp(const VEC3& lhs, const VEC3& rhs, f32 t) in Lerp() argument
149 f32 Dot(const VEC3& vec) const in Dot() argument
157 f32 LenSq() const { return VEC3SquareLen(this); } in LenSq() argument
160 f32 LengthSquare() const { return VEC3SquareLen(this); } in LengthSquare() argument
163 f32 Length() const { return VEC3Len(this); } in Length() argument
175 self_type& SafeNormalize(const VEC3& alt) in SafeNormalize() argument
183 f32 DistanceSquare(const VEC3& vec) const in DistanceSquare() argument
192 self_type& Maximize(const VEC3& lhs, const VEC3& rhs) in Maximize() argument
201 self_type& Minimize(const VEC3& lhs, const VEC3& rhs) in Minimize() argument
210 self_type& Cross(const VEC3& lhs, const VEC3& rhs) in Cross() argument
239 bool IsZero() const { return VEC3IsZero(this); } in IsZero() argument
247 typedef struct VEC3 Vector3; argument