Lines Matching refs:f32

57 NN_MATH_INLINE f32   VEC4DistSq(const VEC4* p1, const VEC4* p2);
67 NN_MATH_INLINE f32 VEC4Dot(const VEC4* p1, const VEC4* p2);
94 NN_MATH_INLINE f32 VEC4Len(const VEC4* p);
103 NN_MATH_INLINE f32 VEC4LenSq(const VEC4* p);
115 NN_MATH_INLINE VEC4* VEC4Lerp(VEC4* pOut, const VEC4* p1, const VEC4* p2, f32 t);
181 NN_MATH_INLINE VEC4* VEC4Scale(VEC4* pOut, const VEC4* p, f32 scale);
207 f32 x; //
208 f32 y; //
209 f32 z; //
210 f32 w; //
248 typedef f32 value_type; //
258 explicit VEC4(const f32* p) { x = p[0]; y = p[1]; z = p[2]; w = p[3]; } in VEC4()
262 VEC4(f32 fx, f32 fy, f32 fz, f32 fw) { x = fx; y = fy; z = fz; w = fw; } in VEC4()
273 operator f32*() { return &x; }
276 operator const f32*() const { return &x; }
291 self_type& operator *= (f32 f) { (void)VEC4Scale(this, this, f); return *this; }
297 self_type& operator /= (f32 f) { (void)VEC4Scale(this, this, 1/f); return *this; }
312 self_type operator * (f32 f) const { VEC4 tmp; (void)VEC4Scale(&tmp, this, f); return tmp; }
315 self_type operator / (f32 f) const { f32 r = 1.f / f; return operator*(r); }
323 self_type& Lerp(const VEC4& lhs, const VEC4& rhs, f32 t) in Lerp()
332 f32 Dot(const VEC4& vec) const in Dot()
340 f32 LenSq() const { return VEC4LenSq(this); } in LenSq()
343 f32 LengthSquare() const { return VEC4LenSq(this); } in LengthSquare()
346 f32 Length() const { return VEC4Len(this); } in Length()
366 f32 DistanceSquare(const VEC4& vec) in DistanceSquare()
396 void Set(f32 fx, f32 fy, f32 fz, f32 fw) { x = fx; y = fy; z = fz; w = fw; } in Set()
435 operator * (f32 f, const VEC4& rhs) { VEC4 tmp; (void)VEC4Scale(&tmp, &rhs, f); return tmp; }
455 inline VEC4* VEC4Scale(VEC4* pOut, const VEC4& v, f32 scale) { return VEC4Scale( pOut, &v, scale); } in VEC4Scale()
456 inline VEC4* VEC4Lerp(VEC4* pOut, const VEC4& v1, const VEC4& v2, f32 t) { return VEC4Lerp( pOut, &… in VEC4Lerp()
457 inline f32 VEC4Dot(const VEC4& v1, const VEC4& v2) { return VEC4Dot( &v1, &v2 ); } in VEC4Dot()
458 inline f32 VEC4LenSq(const VEC4& v) { return VEC4LenSq( &v ); } in VEC4LenSq()
459 inline f32 VEC4Len(const VEC4& v) { return VEC4Len( &v ); } in VEC4Len()
462 inline f32 VEC4DistSq(const VEC4& v1, const VEC4& v2) { return VEC4DistSq( &v1, &v2 ); } in VEC4DistSq()