| /CTR-SDK-0.14.4/include/nn/math/ |
| D | math_Vector3.h | 29 struct VEC3; 34 NN_MATH_INLINE bool VEC3IsZero(const VEC3* p); 35 NN_MATH_INLINE VEC3* VEC3Maximize(VEC3* pOut, const VEC3* p1, const VEC3* p2); 36 NN_MATH_INLINE VEC3* VEC3Minimize(VEC3* pOut, const VEC3* p1, const VEC3* p2); 37 NN_MATH_INLINE VEC3* VEC3Cross(VEC3* pOut, const VEC3* p1, const VEC3* p2); 38 NN_MATH_INLINE VEC3* VEC3Normalize(VEC3* pOut, const VEC3* p); 39 NN_MATH_INLINE VEC3* VEC3SafeNormalize(VEC3* pOut, const VEC3* p, const VEC3& alt); 40 NN_MATH_INLINE f32 VEC3SquareDist(const VEC3* p1, const VEC3* p2); 42 inline VEC3* VEC3Add(VEC3* pOut, const VEC3* p1, const VEC3* p2); 43 inline VEC3* VEC3Sub(VEC3* pOut, const VEC3* p1, const VEC3* p2); [all …]
|
| D | math_Transform.h | 39 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() 118 NN_MATH_INLINE VEC3* VEC3Transform(VEC3* pOut, const MTX33* pM, const VEC3* pV); 119 NN_MATH_INLINE VEC3* VEC3Transform(VEC3* pOut, const MTX34* pM, const VEC3* pV); 120 NN_MATH_INLINE VEC4* VEC3Transform(VEC4* pOut, const MTX44* pM, const VEC3* pV); [all …]
|
| D | math_Geometry.h | 81 LINE3(const VEC3& Pt, const VEC3& dir, bool isNormalized = false) 94 VEC3 P; 95 VEC3 d; // 直接代入する場合は正規化しておくこと 114 RAY3(const VEC3& Pt, const VEC3& dir, bool isNormalized = false) 125 VEC3 P; 126 VEC3 d; // 直接代入する場合は正規化しておくこと 143 SEGMENT3(const VEC3& pt0, const VEC3& pt1) : P0(pt0), P1(pt1) {} in SEGMENT3() 150 VEC3 P0; 151 VEC3 P1; 176 SPHERE(const VEC3& center, f32 radius) : C(center), r(radius) {} in SPHERE() [all …]
|
| D | math_Matrix34.h | 53 NN_MATH_INLINE MTX34* MTX34LookAt(MTX34* pOut, const VEC3* pCamPos, const VEC3* pCamUp, const VEC3*… 54 NN_MATH_INLINE MTX34* MTX34LookAt(MTX34* pOut, const VEC3* pCamPos, f32 twistDeg, const VEC3* pTarg… 55 NN_MATH_INLINE MTX34* MTX34CameraRotate(MTX34* pOut, const VEC3* pCamPos, const VEC3* pCamRotateDeg… 62 …LINE MTX34* MTX34RotXYZTranslateFIdx(MTX34* pOut, f32 fIdxX, f32 fIdxY, f32 fIdxZ, const VEC3* pT); 63 NN_MATH_INLINE MTX34* MTX34RotAxisFIdx(MTX34* pOut, const VEC3* pAxis, f32 fIdx); 65 NN_MATH_INLINE MTX34* MTX34Scale(MTX34* pOut, const VEC3* pS); 66 NN_MATH_INLINE MTX34* MTX34MultScale(MTX34* pOut, const MTX34* pM, const VEC3* pS); 67 NN_MATH_INLINE MTX34* MTX34MultScale(MTX34* pOut, const VEC3* pS, const MTX34* pM); 69 NN_MATH_INLINE MTX34* MTX34Translate(MTX34* pOut, const VEC3* pT); 70 NN_MATH_INLINE MTX34* MTX34MultTranslate(MTX34* pOut, const MTX34* pM, const VEC3* pT); [all …]
|
| D | math_Matrix33.h | 84 NN_FORCE_INLINE VEC3* VEC3Transform(VEC3* pOut, const MTX33* pM, const VEC3* pV); 171 VEC3& GetRow(int index) in GetRow() 174 return *reinterpret_cast<VEC3*>(&this->v[index]); in GetRow() 178 const VEC3& GetRow(int index) const in GetRow() 181 return *reinterpret_cast<const VEC3*>(&this->v[index]); in GetRow() 185 VEC3 GetColumn(int index) const in GetColumn() 188 VEC3 column; in GetColumn() 196 void SetColumn(int index, const VEC3& column) in SetColumn() 316 NN_FORCE_INLINE VEC3* 317 VEC3Transform(VEC3* pOut, const MTX33* pM, const VEC3* pV) in VEC3Transform()
|
| D | math_Matrix44.h | 74 NN_MATH_INLINE MTX44* MTX44RotAxisFIdx(MTX44* pOut, const VEC3* pAxis, f32 fIdx); 76 NN_MATH_INLINE MTX44* MTX44Scale(MTX44* pOut, const VEC3* pS); 77 NN_MATH_INLINE MTX44* MTX44MultScale(MTX44* pOut, const MTX44* pM, const VEC3* pS); 78 NN_MATH_INLINE MTX44* MTX44MultScale(MTX44* pOut, const VEC3* pS, const MTX44* pM); 80 NN_MATH_INLINE MTX44* MTX44Translate(MTX44* pOut, const VEC3* pT); 81 NN_MATH_INLINE MTX44* MTX44MultTranslate(MTX44* pOut, const MTX44* pM, const VEC3* pT); 82 NN_MATH_INLINE MTX44* MTX44MultTranslate(MTX44* pOut, const VEC3* pT, const MTX44* pM); 94 NN_FORCE_INLINE MTX44* MTX44MultScale(MTX44* pOut, const MTX44* pM, const VEC3* pS); 95 NN_FORCE_INLINE MTX44* MTX44MultScale(MTX44* pOut, const VEC3* pS, const MTX44* pM); 96 NN_FORCE_INLINE MTX44* MTX44MultTranslate(MTX44* pOut, const VEC3* pT, const MTX44* pM); [all …]
|
| D | math_Matrix23.h | 128 VEC3& GetRow(int index) in GetRow() 131 return *reinterpret_cast<VEC3*>(&this->v[index]); in GetRow() 135 const VEC3& GetRow(int index) const in GetRow() 138 return *reinterpret_cast<const VEC3*>(&this->v[index]); in GetRow()
|
| D | math_Matrix43.h | 134 VEC3& GetRow(int index) in GetRow() 137 return *reinterpret_cast<VEC3*>(&this->v[index]); in GetRow() 141 const VEC3& GetRow(int index) const in GetRow() 144 return *reinterpret_cast<const VEC3*>(&this->v[index]); in GetRow()
|
| /CTR-SDK-0.14.4/include/nn/math/ARMv6/ |
| D | math_Matrix34.h | 38 MTX34* MTX34MultScaleAsm(MTX34* pOut, const MTX34* pM, const VEC3* pS); 39 MTX34* MTX34MultScaleAsm(MTX34* pOut, const VEC3* __restrict pS, const MTX34* pM); 40 MTX34* MTX34MultTranslateAsm(MTX34* pOut, const VEC3* pT, const MTX34* pM); 41 MTX34* MTX34MultTranslateAsm(MTX34* pOut, const MTX34* pM, const VEC3* pT); 42 MTX34* MTX34ScaleAsm(MTX34* pOut, const VEC3* pS); 44 VEC3* VEC3TransformAsm(VEC3* pOut, const MTX34* __restrict pM, const VEC3* __restrict pV); 46 NN_MATH_INLINE MTX34* MTX34ScaleC_FAST(MTX34* pOut, const VEC3* pS); 47 NN_MATH_INLINE MTX34* MTX34TranslateC_FAST(MTX34* pOut, const VEC3* pT); 48 NN_MATH_INLINE MTX34* MTX34RotAxisRad_C_FAST( MTX34* pOut, const VEC3 *pAxis, f32 fRad ); 50 …TH_INLINE MTX34* MTX34LookAtC_FAST(MTX34* pOut, const VEC3* pCamPos, const VEC3* pCamUp, const VEC… [all …]
|
| D | math_Vector3.h | 26 NN_MATH_INLINE VEC3* VEC3NormalizeC(VEC3* pOut, const VEC3* p); 27 NN_MATH_INLINE VEC3* VEC3NormalizeC_FAST(VEC3* pOut, const VEC3* p);
|
| D | math_Matrix44.h | 23 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 …]
|
| D | math_Matrix33.h | 36 NN_MATH_INLINE VEC3* VEC3TransformC(VEC3* pOut, const MTX33* pM, const VEC3* pV); 41 VEC3* VEC3TransformAsm(VEC3* pOut, const MTX33* pM, const VEC3* pV);
|
| /CTR-SDK-0.14.4/include/nn/math/inline/ |
| D | math_Vector3.ipp | 22 VEC3 38 VEC3IsZero(const VEC3* p) 52 NN_MATH_INLINE VEC3* 53 VEC3Maximize(VEC3* pOut, const VEC3* p1, const VEC3* p2) 73 NN_MATH_INLINE VEC3* 74 VEC3Minimize(VEC3* pOut, const VEC3* p1, const VEC3* p2) 94 NN_MATH_INLINE VEC3* 95 VEC3Cross(VEC3* pOut, const VEC3* p1, const VEC3* p2) 101 VEC3 tmpVec; 125 NN_MATH_INLINE VEC3* [all …]
|
| D | math_Types.ipp | 93 NN_MATH_INLINE VEC3* 94 VEC3TransformArray(VEC3* pOut, const MTX34* __restrict pM, const VEC3* __restrict pV, s32 count) 101 VEC3* __restrict pOutBase = pOut; 111 VEC3 vTmp; 112 VEC3* __restrict pOutBase = pOut; 147 VEC3TransformArray(VEC4* pOut, const MTX44* __restrict pM, const VEC3* __restrict pV, u32 count) 171 NN_MATH_INLINE VEC3* 172 VEC3TransformNormal(VEC3* pOut, const MTX34* pM, const VEC3* pV) 174 VEC3 tmp; 197 NN_MATH_INLINE VEC3* [all …]
|
| /CTR-SDK-0.14.4/include/nn/hid/CTR/ |
| D | hid_DeviceStatus.h | 156 nn::math::VEC3 x;/**/ 159 nn::math::VEC3 y; 162 nn::math::VEC3 z; 170 Direction(const nn::math::VEC3& vecx,const nn::math::VEC3& vecy,const nn::math::VEC3& vecz) in Direction() 200 nn::math::VEC3 speed; 202 nn::math::VEC3 angle;
|
| D | hid_GyroscopeReader.h | 480 f32 ReviseDirection_Acceleration(Direction& rev_dir, const nn::math::VEC3& acc); 508 nn::math::VEC3 m_SpeedOld; 509 nn::math::VEC3 m_SpeedVector; 510 nn::math::VEC3 m_SpeedScale; 533 nn::math::VEC3 m_CalibrationZero; // キャリブレーション値 536 nn::math::VEC3 m_CountZero; // ゼロ点を示すカウント値
|
| /CTR-SDK-0.14.4/include/nn/math/ARMv6/inline/ |
| D | math_Vector3.ipp | 22 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)
|
| D | math_Matrix34.ipp | 36 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 …]
|
| D | math_Matrix33.ipp | 246 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-0.14.4/sources/libraries/math/ |
| D | math_Geometry.cpp | 33 PLANE::Set(const VEC3* P0, const VEC3* P1, const VEC3* P2) in Set() 36 VEC3 v0, v1, v2; in Set() 56 AABB::Set(const VEC3* arrayPoint, unsigned int numPoints) in Set() 147 SPHERE::Set(const VEC3* arrayPoint, unsigned int numPoints) in Set() 171 VEC3 P0(0.f, 0.f, 0.f); in Set() 172 VEC3 P[8]; in Set() 235 DistSqPoint3ToLine3(const VEC3* P, const LINE3* L, f32* t) in DistSqPoint3ToLine3() 240 VEC3 LP; in DistSqPoint3ToLine3() 243 VEC3 PP; in DistSqPoint3ToLine3() 246 VEC3 PP_P; in DistSqPoint3ToLine3() [all …]
|
| D | math_Vector3.cpp | 42 VEC3::Report(bool bNewline, const char* name) const in Report()
|
| /CTR-SDK-0.14.4/sources/libraries/math/ARMv6/ |
| D | math_Matrix33.cpp | 73 asm VEC3* VEC3TransformAsm(VEC3*, const MTX33*, const VEC3*) in VEC3TransformAsm() argument
|
| D | math_Matrix34.cpp | 278 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
|
| D | math_Matrix44.cpp | 224 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-0.14.4/include/nn/gr/CTR/ |
| D | gr_FragmentLight.h | 233 void SetPosition( const nn::math::VEC3& position, const bool is_infinity ) in SetPosition() 263 void SetSpotDirection( const nn::math::VEC3& spot_direction ) in SetSpotDirection()
|