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;
86 typedef f32 value_type; //!< 要素の型です。
96 VEC4(const f32* p) { x = p[0]; y = p[1]; z = p[2]; w = p[3]; } in VEC4()
100 VEC4(f32 fx, f32 fy, f32 fz, f32 fw) { x = fx; y = fy; z = fz; w = fw; } in VEC4()
111 operator f32*() { return &x; }
114 operator const f32*() const { return &x; }
124 self_type& operator *= (f32 f) { (void)VEC4Scale(this, this, f); return *this; }
125 self_type& operator /= (f32 f) { (void)VEC4Scale(this, this, 1/f); return *this; }
132 self_type operator * (f32 f) const { VEC4 tmp; (void)VEC4Scale(&tmp, this, f); return tmp; }
133 self_type operator / (f32 f) const { f32 r = 1.f / f; return operator*(r); }
141 self_type& Lerp(const VEC4& lhs, const VEC4& rhs, f32 t) in Lerp()
150 f32 Dot(const VEC4& vec) const in Dot()
158 f32 LenSq() const { return VEC4LenSq(this); } in LenSq()
161 f32 LengthSquare() const { return VEC4LenSq(this); } in LengthSquare()
164 f32 Length() const { return VEC4Len(this); } in Length()
184 f32 DistanceSquare(const VEC4& vec) in DistanceSquare()
214 void Set(f32 fx, f32 fy, f32 fz, f32 fw) { x = fx; y = fy; z = fz; w = fw; } in Set()
242 operator * (f32 f, const VEC4& rhs) { VEC4 tmp; (void)VEC4Scale(&tmp, &rhs, f); return tmp; }
262 inline VEC4* VEC4Scale(VEC4* pOut, const VEC4& v, f32 scale) { return VEC4Scale( pOut, &v, scale); } in VEC4Scale()
263 inline VEC4* VEC4Lerp(VEC4* pOut, const VEC4& v1, const VEC4& v2, f32 t) { return VEC4Lerp( pOut, &… in VEC4Lerp()
264 inline f32 VEC4Dot(const VEC4& v1, const VEC4& v2) { return VEC4Dot( &v1, &v2 ); } in VEC4Dot()
265 inline f32 VEC4LenSq(const VEC4& v) { return VEC4LenSq( &v ); } in VEC4LenSq()
266 inline f32 VEC4Len(const VEC4& v) { return VEC4Len( &v ); } in VEC4Len()
269 inline f32 VEC4DistSq(const VEC4& v1, const VEC4& v2) { return VEC4DistSq( &v1, &v2 ); } in VEC4DistSq()