Home
last modified time | relevance | path

Searched refs:VEC3 (Results 1 – 25 of 31) sorted by relevance

12

/CTR-SDK-4.2.5/include/nn/math/
Dmath_Vector3.h29 struct VEC3;
47 inline VEC3* VEC3Add(VEC3* pOut, const VEC3* p1, const VEC3* p2);
59 NN_MATH_INLINE VEC3* VEC3Cross(VEC3* pOut, const VEC3* p1, const VEC3* p2);
69 inline f32 VEC3Dist(const VEC3* p1, const VEC3* p2);
79 inline f32 VEC3Dot(const VEC3* p1, const VEC3* p2);
88 NN_MATH_INLINE bool VEC3IsZero(const VEC3* p);
97 inline f32 VEC3Len(const VEC3* p);
109 inline VEC3* VEC3Lerp(VEC3* pOut, const VEC3* p1, const VEC3* p2, f32 t);
120 NN_MATH_INLINE VEC3* VEC3Maximize(VEC3* pOut, const VEC3* p1, const VEC3* p2);
131 NN_MATH_INLINE VEC3* VEC3Minimize(VEC3* pOut, const VEC3* p1, const VEC3* p2);
[all …]
Dmath_Transform.h39 VEC3 scale;
40 VEC3 rotate;
41 VEC3 translate;
84 Transform3(const VEC3& s, const VEC3& r, const VEC3& t) in Transform3()
111 pOut->scale = VEC3(1.f, 1.f, 1.f); in Transform3Identity()
112 pOut->rotate = VEC3(0.f, 0.f, 0.f); in Transform3Identity()
113 pOut->translate = VEC3(0.f, 0.f, 0.f); in Transform3Identity()
144 NN_MATH_INLINE VEC3* VEC3Transform(VEC3* pOut, const MTX33* pM, const VEC3* pV);
156 NN_MATH_INLINE VEC3* VEC3Transform(VEC3* pOut, const MTX34* pM, const VEC3* pV);
167 NN_MATH_INLINE VEC4* VEC3Transform(VEC4* pOut, const MTX44* pM, const VEC3* pV);
[all …]
Dmath_Matrix34.h62 NN_FORCE_INLINE MTX34* MTX34CameraRotate(MTX34* pOut, const VEC3* pCamPos, const VEC3* pCamRotateDe…
134 NN_FORCE_INLINE MTX34* MTX34LookAt(MTX34* pOut, const VEC3* pCamPos, const VEC3* pCamUp, const VEC3
146 NN_FORCE_INLINE MTX34* MTX34LookAt(MTX34* pOut, const VEC3* pCamPos, f32 twistDeg, const VEC3* pTar…
204 NN_FORCE_INLINE MTX34* MTX34MultScale(MTX34* pOut, const MTX34* pM, const VEC3* pS);
215 NN_FORCE_INLINE MTX34* MTX34MultScale(MTX34* pOut, const VEC3* __restrict pS, const MTX34* pM);
226 NN_FORCE_INLINE MTX34* MTX34MultTranslate(MTX34* pOut, const VEC3* pT, const MTX34* pM);
237 NN_FORCE_INLINE MTX34* MTX34MultTranslate(MTX34* pOut, const MTX34* pM, const VEC3* pT);
248 NN_MATH_INLINE MTX34* MTX34RotAxisDeg(MTX34* pOut, const VEC3* pAxis, f32 fDeg);
259 NN_FORCE_INLINE MTX34* MTX34RotAxisDegPartially(MTX34* pOut, const VEC3* pAxis, f32 fDeg);
270 NN_MATH_INLINE MTX34* MTX34RotAxisFIdx(MTX34* pOut, const VEC3* pAxis, f32 fIdx);
[all …]
Dmath_Matrix33.h108 NN_FORCE_INLINE VEC3* VEC3Transform(VEC3* pOut, const MTX33* pM, const VEC3* pV);
212 VEC3& GetRow(int index) in GetRow()
215 return *reinterpret_cast<VEC3*>(&this->v[index]); in GetRow()
219 const VEC3& GetRow(int index) const in GetRow()
222 return *reinterpret_cast<const VEC3*>(&this->v[index]); in GetRow()
226 VEC3 GetColumn(int index) const in GetColumn()
229 VEC3 column; in GetColumn()
237 void SetColumn(int index, const VEC3& column) in SetColumn()
344 NN_FORCE_INLINE VEC3*
345 VEC3Transform(VEC3* pOut, const MTX33* pM, const VEC3* pV) in VEC3Transform()
Dmath_Matrix44.h177 NN_FORCE_INLINE MTX44* MTX44MultScale(MTX44* pOut, const MTX44* pM, const VEC3* pS);
188 NN_FORCE_INLINE MTX44* MTX44MultScale(MTX44* pOut, const VEC3* pS, const MTX44* pM);
199 NN_FORCE_INLINE MTX44* MTX44MultTranslate(MTX44* pOut, const VEC3* pT, const MTX44* pM);
210 NN_FORCE_INLINE MTX44* MTX44MultTranslate(MTX44* pOut, const MTX44* pM, const VEC3* pT);
327 NN_MATH_INLINE MTX44* MTX44RotAxisDeg(MTX44* pOut, const VEC3* pAxis, f32 fDeg);
338 NN_MATH_INLINE MTX44* MTX44RotAxisFIdx(MTX44* pOut, const VEC3* pAxis, f32 fIdx);
349 NN_MATH_INLINE MTX44* MTX44RotAxisRad(MTX44* pOut, const VEC3* pAxis, f32 fRad);
362 NN_FORCE_INLINE MTX44* MTX44RotAxisRad_( MTX44* pOut, const VEC3 *pAxis, f32 fRad );
408 NN_FORCE_INLINE MTX44* MTX44Scale(MTX44* pOut, const VEC3* pS);
429 NN_FORCE_INLINE MTX44* MTX44Translate(MTX44* pOut, const VEC3* pT);
[all …]
Dmath_Matrix23.h296 VEC3& GetRow(int index) in GetRow()
299 return *reinterpret_cast<VEC3*>(&this->v[index]); in GetRow()
303 const VEC3& GetRow(int index) const in GetRow()
306 return *reinterpret_cast<const VEC3*>(&this->v[index]); in GetRow()
Dmath_Matrix43.h228 VEC3& GetRow(int index) in GetRow()
231 return *reinterpret_cast<VEC3*>(&this->v[index]); in GetRow()
235 const VEC3& GetRow(int index) const in GetRow()
238 return *reinterpret_cast<const VEC3*>(&this->v[index]); in GetRow()
Dmath_Quaternion.h206 NN_MATH_INLINE QUAT* QUATRotAxisRad( QUAT* pOut, const VEC3 *axis, f32 rad );
413 inline QUAT* QUATRotAxisRad( QUAT* pOut, const VEC3& axis, f32 rad ) { return QUATRotAxisRad( pOut,… in QUATRotAxisRad()
/CTR-SDK-4.2.5/include/nn/math/ARMv6/
Dmath_Matrix34.h37 MTX34* MTX34MultScaleAsm(MTX34* pOut, const MTX34* pM, const VEC3* pS);
38 MTX34* MTX34MultScaleAsm(MTX34* pOut, const VEC3* __restrict pS, const MTX34* pM);
39 MTX34* MTX34MultTranslateAsm(MTX34* pOut, const VEC3* pT, const MTX34* pM);
40 MTX34* MTX34MultTranslateAsm(MTX34* pOut, const MTX34* pM, const VEC3* pT);
41 MTX34* MTX34ScaleAsm(MTX34* pOut, const VEC3* pS);
43 VEC3* VEC3TransformAsm(VEC3* pOut, const MTX34* __restrict pM, const VEC3* __restrict pV);
45 NN_MATH_INLINE MTX34* MTX34ScaleC_FAST(MTX34* pOut, const VEC3* pS);
46 NN_MATH_INLINE MTX34* MTX34TranslateC_FAST(MTX34* pOut, const VEC3* pT);
47 NN_MATH_INLINE MTX34* MTX34RotAxisRad_C_FAST( MTX34* pOut, const VEC3 *pAxis, f32 fRad, bool isChan…
49 …TH_INLINE MTX34* MTX34LookAtC_FAST(MTX34* pOut, const VEC3* pCamPos, const VEC3* pCamUp, const VEC…
[all …]
Dmath_Vector3.h26 NN_MATH_INLINE VEC3* VEC3NormalizeC(VEC3* pOut, const VEC3* p);
27 NN_MATH_INLINE VEC3* VEC3NormalizeC_FAST(VEC3* pOut, const VEC3* p);
Dmath_Matrix44.h23 NN_MATH_INLINE VEC4* VEC3TransformC(VEC4* pOut, const MTX44* pM, const VEC3* pV);
37 NN_MATH_INLINE MTX44* MTX44RotAxisRad_C( MTX44* pOut, const VEC3 *pAxis, f32 fRad );
38 NN_MATH_INLINE MTX44* MTX44RotAxisRad_C_FAST( MTX44* pOut, const VEC3 *pAxis, f32 fRad );
41 NN_MATH_INLINE MTX44* MTX44ScaleC(MTX44* pOut, const VEC3* pS);
42 NN_MATH_INLINE MTX44* MTX44ScaleC_FAST(MTX44* pOut, const VEC3* pS);
43 NN_MATH_INLINE MTX44* MTX44MultScaleC(MTX44* pOut, const MTX44* pM, const VEC3* pS);
44 NN_MATH_INLINE MTX44* MTX44MultScaleC(MTX44* pOut, const VEC3* pS, const MTX44* pM);
45 NN_MATH_INLINE MTX44* MTX44TranslateC(MTX44* pOut, const VEC3* pT);
46 NN_MATH_INLINE MTX44* MTX44TranslateC_FAST(MTX44* pOut, const VEC3* pT);
47 NN_MATH_INLINE MTX44* MTX44MultTranslateC(MTX44* pOut, const VEC3* pT, const MTX44* pM);
[all …]
Dmath_Matrix33.h35 NN_MATH_INLINE VEC3* VEC3TransformC(VEC3* pOut, const MTX33* pM, const VEC3* pV);
40 VEC3* VEC3TransformAsm(VEC3* pOut, const MTX33* pM, const VEC3* pV);
/CTR-SDK-4.2.5/include/nn/math/inline/
Dmath_Vector3.ipp22 VEC3
25 NN_MATH_INLINE VEC3*
26 VEC3Cross(VEC3* pOut, const VEC3* p1, const VEC3* p2)
32 VEC3 tmpVec;
46 VEC3IsZero(const VEC3* p)
51 NN_MATH_INLINE VEC3*
52 VEC3Maximize(VEC3* pOut, const VEC3* p1, const VEC3* p2)
61 NN_MATH_INLINE VEC3*
62 VEC3Minimize(VEC3* pOut, const VEC3* p1, const VEC3* p2)
71 NN_MATH_INLINE VEC3*
[all …]
Dmath_Types.ipp72 NN_MATH_INLINE VEC3*
73 VEC3TransformArray(VEC3* pOut, const MTX34* __restrict pM, const VEC3* __restrict pV, s32 count)
80 VEC3* __restrict pOutBase = pOut;
90 VEC3 vTmp;
91 VEC3* __restrict pOutBase = pOut;
115 VEC3TransformArray(VEC4* pOut, const MTX44* __restrict pM, const VEC3* __restrict pV, u32 count)
129 NN_MATH_INLINE VEC3*
130 VEC3TransformNormal(VEC3* pOut, const MTX34* pM, const VEC3* pV)
132 VEC3 tmp;
144 NN_MATH_INLINE VEC3*
[all …]
/CTR-SDK-4.2.5/include/nn/math/ARMv6/inline/
Dmath_Vector3.ipp22 VEC3
38 NN_MATH_INLINE VEC3*
39 VEC3NormalizeC(VEC3* pOut, const VEC3* p)
58 NN_MATH_INLINE VEC3*
59 VEC3NormalizeC_FAST(VEC3* pOut, const VEC3* p)
Dmath_Matrix34.ipp36 NN_MATH_INLINE VEC3*
37 VEC3TransformC(VEC3* pOut, const MTX34* __restrict pM, const VEC3* __restrict pV)
43 VEC3 vTmp;
44 VEC3* pDst = (pOut == pV) ? &vTmp : pOut;
208 MTX34ScaleC(MTX34* pOut, const VEC3* pS)
222 MTX34ScaleC_FAST(MTX34* pOut, const VEC3* pS)
249 MTX34MultScaleC(MTX34* pOut, const MTX34* pM, const VEC3* pS)
285 MTX34MultScaleC(MTX34* pOut, const VEC3* __restrict pS, const MTX34* pM)
316 MTX34TranslateC(MTX34* pOut, const VEC3* pT)
330 MTX34TranslateC_FAST(MTX34* pOut, const VEC3* pT)
[all …]
Dmath_Matrix44.ipp37 VEC3TransformC(VEC4* pOut, const MTX44* pM, const VEC3* pV)
965 MTX44RotAxisRad_C( MTX44* pOut, const VEC3 *pAxis, f32 fRad )
967 VEC3 vN;
1016 MTX44RotAxisRad_C_FAST( MTX44* pOut, const VEC3 *pAxis, f32 fRad )
1018 VEC3 vN;
1300 MTX44ScaleC(MTX44* pOut, const VEC3* pS)
1315 MTX44ScaleC_FAST(MTX44* pOut, const VEC3* pS)
1347 MTX44MultScaleC(MTX44* pOut, const MTX44* pM, const VEC3* pS)
1383 MTX44MultScaleC(MTX44* pOut, const VEC3* pS, const MTX44* pM)
1414 MTX44TranslateC(MTX44* pOut, const VEC3* pT)
[all …]
Dmath_Matrix33.ipp246 NN_MATH_INLINE VEC3*
247 VEC3TransformC(VEC3* pOut, const MTX33* pM, const VEC3* pV)
253 VEC3 vTmp;
254 VEC3* pDst = (pOut == pV) ? &vTmp : pOut;
/CTR-SDK-4.2.5/include/nn/hid/CTR/
Dhid_DeviceStatus.h187 nn::math::VEC3 x;/**/
190 nn::math::VEC3 y;
193 nn::math::VEC3 z;
201 …explicit Direction(const nn::math::VEC3& vecx,const nn::math::VEC3& vecy,const nn::math::VEC3& vec… in Direction()
229 nn::math::VEC3 speed;
231 nn::math::VEC3 angle;
Dhid_GyroscopeReader.h497 f32 ReviseDirection_Acceleration(Direction& rev_dir, const nn::math::VEC3& acc);
526 nn::math::VEC3 m_SpeedOld;
527 nn::math::VEC3 m_SpeedVector;
528 nn::math::VEC3 m_SpeedScale;
551 nn::math::VEC3 m_CalibrationZero; // Calibration value
554 nn::math::VEC3 m_CountZero; // Count value indicating zero point
/CTR-SDK-4.2.5/sources/libraries/math/ARMv6/
Dmath_Matrix33.cpp73 asm VEC3* VEC3TransformAsm(VEC3*, const MTX33*, const VEC3*) in VEC3TransformAsm() argument
Dmath_Matrix34.cpp278 MTX34MultScaleAsm(MTX34* , const MTX34* , const VEC3* ) in MTX34MultScaleAsm() argument
301 MTX34MultScaleAsm(MTX34* , const VEC3*, const MTX34* ) in MTX34MultScaleAsm() argument
511 MTX34MultTranslateAsm(MTX34*, const VEC3*, const MTX34*) in MTX34MultTranslateAsm() argument
526 MTX34MultTranslateAsm(MTX34*, const MTX34*, const VEC3*) in MTX34MultTranslateAsm() argument
549 asm VEC3* VEC3TransformAsm(VEC3* , const MTX34* , const VEC3* ) in VEC3TransformAsm() argument
596 MTX34ScaleAsm(MTX34* , const VEC3* ) in MTX34ScaleAsm() argument
Dmath_Matrix44.cpp224 asm MTX44* MTX44MultScaleAsm(MTX44*, const MTX44*, const VEC3*) in MTX44MultScaleAsm() argument
246 asm MTX44* MTX44MultScaleAsm(MTX44*, const VEC3*, const MTX44*) in MTX44MultScaleAsm() argument
271 asm MTX44* MTX44MultTranslateAsm(MTX44*, const VEC3*, const MTX44*) in MTX44MultTranslateAsm() argument
285 asm MTX44* MTX44MultTranslateAsm(MTX44*, const MTX44*, const VEC3*) in MTX44MultTranslateAsm() argument
334 asm VEC4* VEC3TransformAsm(VEC4*, const MTX44*, const VEC3*) in VEC3TransformAsm() argument
/CTR-SDK-4.2.5/sources/libraries/math/
Dmath_Vector3.cpp42 VEC3::Report(bool bNewline, const char* name) const in Report()
/CTR-SDK-4.2.5/include/nn/gr/CTR/
Dgr_FragmentLight.h210 void SetPosition( const nn::math::VEC3& position, const bool is_infinity ) in SetPosition()
240 void SetSpotDirection( const nn::math::VEC3& spot_direction ) in SetSpotDirection()

12