| /CTR-SDK-1.0.0/CTR_SDK/include/nn/math/ |
| D | math_Triangular.h | 32 f32 sin_val; 33 f32 cos_val; 34 f32 sin_delta; // 次のsin_valとの差 35 f32 cos_delta; // 次のcos_valとの差 72 f32 SinFIdx(f32 fidx); 81 f32 CosFIdx(f32 fidx); 92 void SinCosFIdx(f32* pSin, f32* pCos, f32 fidx); 101 inline f32 102 TanFIdx(f32 fidx) in TanFIdx() 115 inline f32 SinRad(f32 rad) { return SinFIdx(NN_MATH_RAD_TO_FIDX(rad)); } in SinRad() [all …]
|
| D | math_Arithmetic.h | 48 F32AsU32(f32 x) in F32AsU32() 62 inline f32 65 return *reinterpret_cast<f32*>(&x); in U32AsF32() 77 FGetExpPart(f32 f) in FGetExpPart() 91 inline f32 92 FGetMantPart(f32 f) in FGetMantPart() 109 inline f32 110 FSelect(f32 cond, f32 ifPos, f32 ifNeg) in FSelect() 112 f32 ret; in FSelect() 128 inline f32 [all …]
|
| D | math_Constant.h | 25 const f32 F_E = 2.718281828459045f; // ネピア数 (自然対数の底) e 26 const f32 F_LOG2E = 1.442695040888963f; // log2(e) 27 const f32 F_LOG10E = 0.434294481903251f; // log10(e) 28 const f32 F_LN2 = 0.693147180559945f; // ln(2) 29 const f32 F_LN10 = 2.302585092994045f; // ln(10) 30 const f32 F_PI = 3.141592653589793f; // π 31 const f32 F_SQRTPI = 1.772453850905516f; // sqrt(π) 32 const f32 F_SQRT2 = 1.414213562373095f; // sqrt(2) 33 const f32 F_SQRT3 = 1.732050807568877f; // sqrt(3) 35 const f32 F_INVLN2 = 1.442695040888963f; // 1/ln2 [all …]
|
| D | math_Equation.h | 25 int SolveEquation2(f32* root, f32 a, f32 b, f32 c); 26 int SolveEquation3(f32* root, f32 a, f32 b, f32 c, f32 d); 27 int SolveEquation4(f32* root, f32 a, f32 b, f32 c, f32 d, f32 e);
|
| D | math_Geometry.h | 78 LINE3(const f32* p, bool isNormalized = false) 85 operator f32*() { return &P.x; } 86 operator const f32*() const { return &P.x; } 111 RAY3(const f32* p, bool isNormalized = false) 118 operator f32*() { return &P.x; } 119 operator const f32*() const { return &P.x; } 142 SEGMENT3(const f32* p) : P0(p), P1(p + 3) {} in SEGMENT3() 145 operator f32*() { return &P0.x; } 146 operator const f32*() const { return &P0.x; } 175 SPHERE(const f32* p) : C(p), r(*(p + 3)) {} in SPHERE() [all …]
|
| D | math_Matrix44.h | 63 NN_MATH_INLINE MTX44* MTX44Mult(MTX44* pOut, const MTX44* p, f32 f); 66 NN_MATH_INLINE MTX44* MTX44Frustum(MTX44* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f); 67 NN_MATH_INLINE MTX44* MTX44Ortho(MTX44* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f); 68 NN_MATH_INLINE MTX44* MTX44PerspectiveRad(MTX44* pOut, f32 fovy, f32 aspect, f32 n, f32 f); 73 NN_MATH_INLINE MTX44* MTX44RotXYZFIdx(MTX44* pOut, f32 fIdxX, f32 fIdxY, f32 fIdxZ); 74 NN_MATH_INLINE MTX44* MTX44RotAxisFIdx(MTX44* pOut, const VEC3* pAxis, f32 fIdx); 84 NN_MATH_INLINE MTX44* MTX44FrustumPivot(MTX44* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f, Pivo… 85 NN_MATH_INLINE MTX44* MTX44OrthoPivot(MTX44* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f, PivotD… 86 NN_MATH_INLINE MTX44* MTX44PerspectivePivotRad(MTX44* pOut, f32 fovy, f32 aspect, f32 n, f32 f, Piv… 90 NN_FORCE_INLINE MTX44* MTX44Frustum(MTX44* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f); [all …]
|
| D | math_Vector4.h | 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; [all …]
|
| D | math_Matrix34.h | 41 NN_MATH_INLINE MTX34* MTX34Mult(MTX34* pOut, const MTX34* p, f32 f); 43 NN_MATH_INLINE MTX34* MTX34MAdd(MTX34* pOut, f32 t, const MTX34* p1, const MTX34* p2); 54 NN_MATH_INLINE MTX34* MTX34LookAt(MTX34* pOut, const VEC3* pCamPos, f32 twistDeg, const VEC3* pTarg… 57 …extureProjectionFrustum(MTX34* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 scaleS, f32 scaleT, f3… 58 …34TextureProjectionPerspective(MTX34* pOut, f32 fovy, f32 aspect, f32 scaleS, f32 scaleT, f32 tran… 59 …MTX34TextureProjectionOrtho(MTX34* pOut, f32 l, f32 r, f32 b, f32 t, f32 scaleS, f32 scaleT, f32 t… 61 NN_MATH_INLINE MTX34* MTX34RotXYZFIdx(MTX34* pOut, f32 fIdxX, f32 fIdxY, f32 fIdxZ); 62 NN_MATH_INLINE MTX34* MTX34RotXYZTranslateFIdx(MTX34* pOut, f32 fIdxX, f32 fIdxY, f32 fIdxZ, const … 63 NN_MATH_INLINE MTX34* MTX34RotAxisFIdx(MTX34* pOut, const VEC3* pAxis, f32 fIdx); 81 NN_FORCE_INLINE MTX34* MTX34LookAt(MTX34* pOut, const VEC3* pCamPos, f32 twistDeg, const VEC3* pTar… [all …]
|
| D | math_Vector3.h | 40 NN_MATH_INLINE f32 VEC3SquareDist(const VEC3* p1, const VEC3* p2); 45 inline VEC3* VEC3Scale(VEC3* pOut, const VEC3* p, f32 scale); 46 inline VEC3* VEC3Lerp(VEC3* pOut, const VEC3* p1, const VEC3* p2, f32 t); 47 inline f32 VEC3Dot(const VEC3* p1, const VEC3* p2); 48 inline f32 VEC3Len(const VEC3* p); 49 inline f32 VEC3SquareLen(const VEC3* p); 50 inline f32 VEC3Dist(const VEC3* p1, const VEC3* p2); 60 f32 x; 61 f32 y; 62 f32 z; [all …]
|
| D | math_Vector2.h | 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; } [all …]
|
| D | math_Matrix43.h | 40 NN_MATH_INLINE MTX43* MTX43Mult(MTX43* pOut, const MTX43* p, f32 f); 45 NN_FORCE_INLINE MTX43* MTX43Mult(MTX43* pOut, const MTX43* p, f32 f); 53 f32 _00, _01, _02; 54 f32 _10, _11, _12; 55 f32 _20, _21, _22; 56 f32 _30, _31, _32; 64 f32 _00, _01, _02; 65 f32 _10, _11, _12; 66 f32 _20, _21, _22; 67 f32 _30, _31, _32; [all …]
|
| /CTR-SDK-1.0.0/CTR_SDK/include/nn/math/ARMv6/ |
| D | math_Arithmetic.h | 39 f32 HermiteAsm(f32 v0, f32 t0, f32 v1, f32 t1, f32 s); 40 f32 HermiteAsm(f32 v0, f32 t0, f32 v1, f32 t1, f32 p, f32 d); 53 inline f32 54 HermiteC(f32 v0, f32 t0, f32 v1, f32 t1, f32 s) in HermiteC() 56 f32 SS = s * s; in HermiteC() 57 f32 SS_S = s * s - s; in HermiteC() 58 f32 b1 = SS_S * s - SS_S; in HermiteC() 59 f32 b2 = SS_S * s; in HermiteC() 60 f32 a2 = SS - 2.f * b2; in HermiteC() 64 inline f32 [all …]
|
| D | math_Matrix44.h | 26 NN_MATH_INLINE MTX44* MTX44MultC(MTX44* pOut, const MTX44* p, f32 f); 28 NN_MATH_INLINE MTX44* MTX44PerspectiveRadC(MTX44* pOut, f32 fovy, f32 aspect, f32 n, f32 f); 29 NN_MATH_INLINE MTX44* MTX44PerspectiveRadC_FAST(MTX44* pOut, f32 fovy, f32 aspect, f32 n, f32 f); 30 NN_MATH_INLINE MTX44* MTX44FrustumC(MTX44* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f); 31 NN_MATH_INLINE MTX44* MTX44FrustumC_FAST(MTX44* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f); 32 NN_MATH_INLINE MTX44* MTX44OrthoC(MTX44* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f); 33 NN_MATH_INLINE MTX44* MTX44OrthoC_FAST(MTX44* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f); 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 ); 39 NN_MATH_INLINE MTX44* MTX44RotXYZFIdxC(MTX44* pOut, f32 fIdxX, f32 fIdxY, f32 fIdxZ); [all …]
|
| /CTR-SDK-1.0.0/CTR_SDK/sources/libraries/math/ |
| D | math_Equation.cpp | 29 const f32 EPS = 2e-4f; 44 NN_MATH_INLINE f32 45 spow(f32 x) in spow() 51 NN_MATH_INLINE f32 52 spow<1>(f32 x) in spow() 72 SolveEquation2(f32* root, /*f32 a==1,*/ f32 b, f32 c) in SolveEquation2() 78 f32 r_c = FSqrt(-c); in SolveEquation2() 95 f32 A = b / 2; in SolveEquation2() 96 f32 B = c / spow<2>(A); in SolveEquation2() 97 f32 D = 1 - B; in SolveEquation2() [all …]
|
| D | math_Arithmetic.cpp | 28 f32 exp_val; 29 f32 exp_delta; 73 f32 log_val; 74 f32 log_delta; 350 NN_MATH_INLINE f32 351 FExpLn2(f32 x) in FExpLn2() 353 f32 fidx; in FExpLn2() 355 f32 r; in FExpLn2() 378 NN_MATH_INLINE f32 379 FLog1_2(f32 x) in FLog1_2() [all …]
|
| D | math_Triangular.cpp | 294 f32 atan_val; 295 f32 atan_delta; 351 f32 AtanFIdx_(f32 x) in AtanFIdx_() 354 f32 val; in AtanFIdx_() 355 f32 r; in AtanFIdx_() 381 f32 SinFIdx(f32 fidx) in SinFIdx() 383 f32 abs_fidx; in SinFIdx() 384 f32 val; in SinFIdx() 386 f32 r; in SinFIdx() 413 f32 SinIdx(u16 idx) in SinIdx() [all …]
|
| /CTR-SDK-1.0.0/CTR_SDK/include/nn/ulcd/CTR/ |
| D | ulcd_StereoCamera.h | 99 …void SetBaseFrustum(const f32 left, const f32 right, const f32 bottom, const f32 top, const f32 ne… 131 void SetLimitParallax(const f32 limit); 149 const f32 depthLevel, const f32 factor, 167 const f32 depthLevel, const f32 factor, 186 f32 CalculateMatrices( nn::math::Matrix44* projL, nn::math::Matrix34* viewL, 189 const f32 depthLevel, const f32 factor, const bool realSwitch); 197 f32 GetParallax(const f32 distance) const; 199 f32 GetCoefficientForParallax(void) const; 205 f32 GetMaxParallax(void) const; 211 f32 GetLimitParallax(void) const { return m_LimitParallax; } in GetLimitParallax() [all …]
|
| /CTR-SDK-1.0.0/CTR_SDK/include/nn/hid/CTR/ |
| D | hid_GyroscopeReader.h | 158 void SetAngle(f32 ax, f32 ay, f32 az); 174 void SetAngleMagnification(f32 pitch, f32 yaw, f32 roll); 184 void SetDirectionMagnification(f32 magnification); 222 f32 GetZeroPlayEffect() const; 235 void SetZeroPlayParam(f32 radius); 245 void GetZeroPlayParam(f32& radius) const; 298 f32 GetZeroDriftEffect() const; 377 f32 GetAccReviseEffect() const; 393 void SetAccReviseParam(f32 revisePower, f32 reviseRange); 401 void GetAccReviseParam(f32& revisePower, f32& reviseRange) const; [all …]
|
| /CTR-SDK-1.0.0/CTR_SDK/include/nn/util/ |
| D | util_Rect.h | 32 f32 left; //!< 矩形の左座標です。 33 f32 top; //!< 矩形の上座標です。 34 f32 right; //!< 矩形の右座標です。 35 f32 bottom; //!< 矩形の下座標です。 63 Rect(f32 l, f32 t, f32 r, f32 b) in Rect() 98 f32 GetWidth() const { return right - left; } in GetWidth() 105 f32 GetHeight() const { return bottom - top; } in GetHeight() 112 f32 GetX() const { return left; } in GetX() 119 f32 GetY() const { return top; } in GetY() 126 void SetWidth(f32 width) { right = left + width; } in SetWidth() [all …]
|
| D | util_Float24.h | 45 static u32 Float32ToBits32(f32 value) in Float32ToBits32() 57 static f32 Bits32ToFloat32(u32 value) in Bits32ToFloat32() 59 return *reinterpret_cast<f32*>(&value); in Bits32ToFloat32() 95 /* implicit */ Float24( f32 value ) : m_Float32( value ) {} in Float24() 97 f32 GetFloat32Value() const { return m_Float32; } in GetFloat32Value() 100 Float24& operator =(f32 value) { this->m_Float32 = value; return *this; } 103 operator f32() const { return m_Float32; } in f32() function 105 f32 operator +(f32 right) const { return this->m_Float32 + right; } 106 f32 operator -(f32 right) const { return this->m_Float32 - right; } 107 f32 operator *(f32 right) const { return this->m_Float32 * right; } [all …]
|
| /CTR-SDK-1.0.0/CTR_SDK/include/nn/gr/CTR/ |
| D | gr_ProcedureTexture.h | 100 f32 texBias; 129 f32 noiseUAmplitude; 136 f32 noiseVAmplitude; 143 f32 noiseUFrequency; 150 f32 noiseVFrequency; 157 f32 noiseUPhase; 164 f32 noiseVPhase; 174 void SetNoiseLookUpTable( const f32 lookUpTable[ PROCTEX_LOOKUP_TABLE_ELEMENT_NUM ], 176 const f32 lastDiffValue = 0.0f ); 185 void SetNoiseLookUpTable( const f32 lookUpTable[ PROCTEX_LOOKUP_TABLE_ELEMENT_NUM ], [all …]
|
| /CTR-SDK-1.0.0/CTR_SDK/include/nn/font/CTR/ |
| D | font_CharWriter.h | 242 f32 hScale, in SetScale() 243 f32 vScale in SetScale() 254 void SetScale(f32 hvScale) in SetScale() 264 f32 GetScaleH() const { return m_Scale.x; } in GetScaleH() 270 f32 GetScaleV() const { return m_Scale.y; } in GetScaleV() 278 f32 width, 279 f32 height); 285 void SetFontSize(f32 height); 292 f32 GetFontWidth() const; 299 f32 GetFontHeight() const; [all …]
|
| D | font_TextWriterBase.h | 108 void SetLineSpace(f32 space) { m_LineSpace = space; } in SetLineSpace() 114 f32 GetLineSpace() const { return m_LineSpace; } in GetLineSpace() 120 void SetLineHeight(f32 height); 126 f32 GetLineHeight() const; 132 void SetCharSpace(f32 space) { m_CharSpace = space; } in SetCharSpace() 138 f32 GetCharSpace() const { return m_CharSpace; } in GetCharSpace() 161 void SetWidthLimit(f32 limit) { m_WidthLimit = limit; } in SetWidthLimit() 168 f32 GetWidthLimit() const { return m_WidthLimit; } in GetWidthLimit() 231 f32 CalcFormatStringWidth( 242 f32 CalcStringWidth( in CalcStringWidth() [all …]
|
| /CTR-SDK-1.0.0/CTR_SDK/include/nn/camera/CTR/ |
| D | camera_CalibrationTypes.h | 50 f32 scale; 53 f32 rotationZ; 56 f32 translationX; 59 f32 translationY; 62 f32 rotationX; 65 f32 rotationY; 68 f32 angleOfViewRight; 71 f32 angleOfViewLeft; 80 f32 distanceToChart; 83 f32 distanceCameras;
|
| /CTR-SDK-1.0.0/CTR_SDK/sources/libraries/gr/CTR/ |
| D | gr_ProcedureTexture.cpp | 25 …void ProcedureTexture::SetNoiseLookUpTable( const f32 lookUpTable[ PROCTEX_LOOKUP_TABLE_ELEMENT_NU… in SetNoiseLookUpTable() 27 const f32 lastDiffValue ) in SetNoiseLookUpTable() 29 f32 diffLookUpTable[ PROCTEX_LOOKUP_TABLE_ELEMENT_NUM ]; in SetNoiseLookUpTable() 35 …void ProcedureTexture::SetNoiseLookUpTable( const f32 lookUpTable[ PROCTEX_LOOKUP_TABLE_ELEMENT_NU… in SetNoiseLookUpTable() 36 … const f32 diffLookUpTable[ PROCTEX_LOOKUP_TABLE_ELEMENT_NUM ], in SetNoiseLookUpTable() 43 …void ProcedureTexture::SetRgbMapLookUpTable( const f32 lookUpTable[ PROCTEX_LOOKUP_TABLE_ELEMENT_N… in SetRgbMapLookUpTable() 45 const f32 lastDiffValue ) in SetRgbMapLookUpTable() 47 f32 diffLookUpTable[ PROCTEX_LOOKUP_TABLE_ELEMENT_NUM ]; in SetRgbMapLookUpTable() 53 …void ProcedureTexture::SetRgbMapLookUpTable( const f32 lookUpTable[ PROCTEX_LOOKUP_TABLE_ELEMENT_N… in SetRgbMapLookUpTable() 54 … const f32 diffLookUpTable[ PROCTEX_LOOKUP_TABLE_ELEMENT_NUM ], in SetRgbMapLookUpTable() [all …]
|