Lines Matching refs:f32
33 NN_MATH_INLINE VEC2* VEC2Lerp(VEC2* pOut, const VEC2* p1, const VEC2* p2, f32 t);
34 NN_MATH_INLINE f32 VEC2Dot(const VEC2* p1, const VEC2* p2);
39 NN_MATH_INLINE f32 VEC2DistSq(const VEC2* p1, const VEC2* p2);
47 f32 x;
48 f32 y;
68 typedef f32 value_type; //!< 要素の型です。
78 VEC2(const f32* p) { x = p[0]; y = p[1]; } in VEC2()
82 VEC2(f32 fx, f32 fy) { x = fx; y = fy; } in VEC2()
90 operator f32*() { return &x; }
93 operator const f32*() const { return &x; }
102 self_type& operator *= (f32 f) { x *= f; y *= f; return *this; }
103 self_type& operator /= (f32 f) { f32 r = 1.f / f; x *= r; y *= r; return *this; }
110 self_type operator * (f32 f) const { return self_type(f * x, f * y); }
111 self_type operator / (f32 f) const { f32 r = 1.f / f; return self_type(r * x, r * y); }
119 self_type& Lerp(const VEC2& lhs, const VEC2& rhs, f32 t) in Lerp()
128 f32 Dot(const VEC2& vec) const in Dot()
134 f32 LenSq() const { return x * x + y * y; } in LenSq()
137 f32 LengthSquare() const { return x * x + y * y; } in LengthSquare()
140 f32 Length() const { return FSqrt(this->x * this->x + this->y * this->y); } in Length()
160 f32 DistanceSquare(const VEC2& vec) in DistanceSquare()
190 void Set(f32 fx, f32 fy) { x = fx; y = fy; } in Set()
290 VEC2Scale(VEC2* pOut, const VEC2* p, f32 scale) in VEC2Scale()
311 VEC2Lerp(VEC2* pOut, const VEC2* p1, const VEC2* p2, f32 t) in VEC2Lerp()
328 inline f32
344 inline f32
358 inline f32
369 inline f32
373 operator * (f32 f, const VEC2& rhs) { return VEC2(f * rhs.x, f * rhs.y); }
394 inline VEC2* VEC2Scale(VEC2* pOut, const VEC2& v, f32 scale) { return VEC2Scale(pOut, &v, scale); } in VEC2Scale()
395 inline VEC2* VEC2Lerp(VEC2* pOut, const VEC2& v1, const VEC2& v2, f32 t) { return VEC2Lerp(pOut, &v… in VEC2Lerp()
396 inline f32 VEC2Dot(const VEC2& v1, const VEC2& v2) { return VEC2Dot(&v1, &v2); } in VEC2Dot()
397 inline f32 VEC2LenSq(const VEC2& v) { return VEC2LenSq( &v ); } in VEC2LenSq()
398 inline f32 VEC2Len(const VEC2& v) { return VEC2Len( &v ); } in VEC2Len()
399 inline f32 VEC2DistSq(const VEC2& v1, const VEC2& v2) { return VEC2DistSq( &v1, &v2 ); } in VEC2DistSq()