Lines Matching refs:f32
38 NN_MATH_INLINE VEC4* VEC4Scale(VEC4* pOut, const VEC4* p, f32 scale);
39 NN_MATH_INLINE VEC4* VEC4Lerp(VEC4* pOut, const VEC4* p1, const VEC4* p2, f32 t);
40 NN_MATH_INLINE f32 VEC4Dot(const VEC4* p1, const VEC4* p2);
41 NN_MATH_INLINE f32 VEC4LenSq(const VEC4* p);
42 NN_MATH_INLINE f32 VEC4Len(const VEC4* p);
45 NN_MATH_INLINE f32 VEC4DistSq(const VEC4* p1, const VEC4* p2);
54 f32 x;
55 f32 y;
56 f32 z;
57 f32 w;
94 typedef f32 value_type; //
104 explicit VEC4(const f32* p) { x = p[0]; y = p[1]; z = p[2]; w = p[3]; } in VEC4()
108 VEC4(f32 fx, f32 fy, f32 fz, f32 fw) { x = fx; y = fy; z = fz; w = fw; } in VEC4()
119 operator f32*() { return &x; }
122 operator const f32*() const { return &x; }
132 self_type& operator *= (f32 f) { (void)VEC4Scale(this, this, f); return *this; }
133 self_type& operator /= (f32 f) { (void)VEC4Scale(this, this, 1/f); return *this; }
140 self_type operator * (f32 f) const { VEC4 tmp; (void)VEC4Scale(&tmp, this, f); return tmp; }
141 self_type operator / (f32 f) const { f32 r = 1.f / f; return operator*(r); }
149 self_type& Lerp(const VEC4& lhs, const VEC4& rhs, f32 t) in Lerp()
158 f32 Dot(const VEC4& vec) const in Dot()
166 f32 LenSq() const { return VEC4LenSq(this); } in LenSq()
169 f32 LengthSquare() const { return VEC4LenSq(this); } in LengthSquare()
172 f32 Length() const { return VEC4Len(this); } in Length()
192 f32 DistanceSquare(const VEC4& vec) in DistanceSquare()
222 void Set(f32 fx, f32 fy, f32 fz, f32 fw) { x = fx; y = fy; z = fz; w = fw; } in Set()
250 operator * (f32 f, const VEC4& rhs) { VEC4 tmp; (void)VEC4Scale(&tmp, &rhs, f); return tmp; }
270 inline VEC4* VEC4Scale(VEC4* pOut, const VEC4& v, f32 scale) { return VEC4Scale( pOut, &v, scale); } in VEC4Scale()
271 inline VEC4* VEC4Lerp(VEC4* pOut, const VEC4& v1, const VEC4& v2, f32 t) { return VEC4Lerp( pOut, &… in VEC4Lerp()
272 inline f32 VEC4Dot(const VEC4& v1, const VEC4& v2) { return VEC4Dot( &v1, &v2 ); } in VEC4Dot()
273 inline f32 VEC4LenSq(const VEC4& v) { return VEC4LenSq( &v ); } in VEC4LenSq()
274 inline f32 VEC4Len(const VEC4& v) { return VEC4Len( &v ); } in VEC4Len()
277 inline f32 VEC4DistSq(const VEC4& v1, const VEC4& v2) { return VEC4DistSq( &v1, &v2 ); } in VEC4DistSq()