| /CTR-SDK-4.2.5/include/nn/math/ |
| D | math_Triangular.h | 33 f32 sin_val; 34 f32 cos_val; 35 f32 sin_delta; // Difference from next sin_val 36 f32 cos_delta; // Difference from next cos_val 73 f32 SinFIdx(f32 fidx); 82 f32 CosFIdx(f32 fidx); 93 void SinCosFIdx(f32* pSin, f32* pCos, f32 fidx); 102 NN_MATH_INLINE f32 103 TanFIdx(f32 fidx) in TanFIdx() 105 f32 sin, cos; in TanFIdx() [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; // Napier's constant (natural log base) 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; // pi 31 const f32 F_SQRTPI = 1.772453850905516f; // sqrt(pi) 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_Matrix44.h | 87 NN_FORCE_INLINE MTX44* MTX44Frustum(MTX44* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f); 104 NN_MATH_INLINE MTX44* MTX44FrustumPivot(MTX44* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f, Pivo… 154 NN_FORCE_INLINE MTX44* MTX44Mult(MTX44* pOut, const MTX44* p, f32 f); 226 NN_FORCE_INLINE MTX44* MTX44Ortho(MTX44* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f); 243 NN_MATH_INLINE MTX44* MTX44OrthoPivot(MTX44* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f, PivotD… 256 NN_MATH_INLINE MTX44* MTX44PerspectiveDeg(MTX44* pOut, f32 fovy, f32 aspect, f32 n, f32 f); 261 MTX44Perspective(MTX44* pOut, f32 fovy, f32 aspect, f32 n, f32 f) in MTX44Perspective() 278 NN_MATH_INLINE MTX44* MTX44PerspectivePivotDeg(MTX44* pOut, f32 fovy, f32 aspect, f32 n, f32 f, Piv… 293 NN_MATH_INLINE MTX44* MTX44PerspectivePivotRad(MTX44* pOut, f32 fovy, f32 aspect, f32 n, f32 f, Piv… 306 NN_FORCE_INLINE MTX44* MTX44PerspectiveRad(MTX44* pOut, f32 fovy, f32 aspect, f32 n, f32 f); [all …]
|
| D | math_Matrix34.h | 146 NN_FORCE_INLINE MTX34* MTX34LookAt(MTX34* pOut, const VEC3* pCamPos, f32 twistDeg, const VEC3* pTar… 158 NN_FORCE_INLINE MTX34* MTX34MAdd(MTX34* pOut, f32 t, const MTX34* p1, const MTX34* p2); 181 NN_FORCE_INLINE MTX34* MTX34Mult(MTX34* pOut, const MTX34* p, f32 f); 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); 281 NN_MATH_INLINE MTX34* MTX34RotAxisRad(MTX34* pOut, const VEC3* pAxis, f32 fRad); 293 NN_FORCE_INLINE MTX34* MTX34RotAxisRad_( MTX34* pOut, const VEC3 *pAxis, f32 fRad ); 304 NN_FORCE_INLINE MTX34* MTX34RotAxisRadPartially(MTX34* pOut, const VEC3* pAxis, f32 fRad); 316 NN_MATH_INLINE MTX34* MTX34RotXYZDeg(MTX34* pOut, f32 fDegX, f32 fDegY, f32 fDegZ); [all …]
|
| D | math_Matrix43.h | 97 NN_FORCE_INLINE MTX43* MTX43Mult(MTX43* pOut, const MTX43* p, f32 f); 133 f32 _00; // 134 f32 _01; // 135 f32 _02; // 136 f32 _10; // 137 f32 _11; // 138 f32 _12; // 139 f32 _20; // 140 f32 _21; // 141 f32 _22; // [all …]
|
| D | math_Vector4.h | 57 NN_MATH_INLINE f32 VEC4DistSq(const VEC4* p1, const VEC4* p2); 67 NN_MATH_INLINE f32 VEC4Dot(const VEC4* p1, const VEC4* p2); 94 NN_MATH_INLINE f32 VEC4Len(const VEC4* p); 103 NN_MATH_INLINE f32 VEC4LenSq(const VEC4* p); 115 NN_MATH_INLINE VEC4* VEC4Lerp(VEC4* pOut, const VEC4* p1, const VEC4* p2, f32 t); 181 NN_MATH_INLINE VEC4* VEC4Scale(VEC4* pOut, const VEC4* p, f32 scale); 207 f32 x; // 208 f32 y; // 209 f32 z; // 210 f32 w; // [all …]
|
| D | math_Matrix22.h | 77 NN_MATH_INLINE MTX22* MTX22MAdd(MTX22* pOut, f32 t, const MTX22* p1, const MTX22* p2); 106 f32 _00; // 107 f32 _01; // 108 f32 _10; // 109 f32 _11; // 121 f32 _00, _01; 122 f32 _10, _11; 126 f32 m[2][2]; // 127 f32 a[4]; // 154 typedef f32 value_type; // [all …]
|
| /CTR-SDK-4.2.5/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 NN_MATH_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 NN_MATH_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-4.2.5/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-4.2.5/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; 203 f32 GetCoefficientForParallax(void) const; 209 f32 GetMaxParallax(void) const; 215 f32 GetLimitParallax(void) const { return m_LimitParallax; } in GetLimitParallax() [all …]
|
| /CTR-SDK-4.2.5/include/nn/hid/CTR/ |
| D | hid_GyroscopeReader.h | 155 void SetAngle(f32 ax, f32 ay, f32 az); 171 void SetAngleMagnification(f32 pitch, f32 yaw, f32 roll); 181 void SetDirectionMagnification(f32 magnification); 219 f32 GetZeroPlayEffect() const; 232 void SetZeroPlayParam(f32 radius); 242 void GetZeroPlayParam(f32& radius) const; 294 f32 GetZeroDriftEffect() const; 373 f32 GetAccReviseEffect() const; 389 void SetAccReviseParam(f32 revisePower, f32 reviseRange); 397 void GetAccReviseParam(f32& revisePower, f32& reviseRange) const; [all …]
|
| /CTR-SDK-4.2.5/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-4.2.5/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-4.2.5/include/nn/gd/CTR/ |
| D | gd_Utils.h | 81 static void ConvertStartEndToScaleBias(f32 start, f32 end, f32& scale, f32& bias); 94 static u8 FloatToUnsignedByte(f32 val); 107 static u8 FloatToUnsignedByteNoClamp(f32 val); 120 static s8 FloatToSignedByte(f32 val); 133 static u16 Float32ToFloat16( f32 val ); 146 static u32 Float32ToFix13Fraction11( f32 val ); 159 static u32 Float32ToUnsignedFix12( f32 val ); 172 static u32 Float32ToFix12( f32 val ); 185 static u32 Float32ToFix12Fraction11( f32 val ); 198 static u32 Float32ToUnsignedFix11( f32 val ); [all …]
|
| /CTR-SDK-4.2.5/include/nn/font/CTR/ |
| D | font_CharWriter.h | 241 f32 hScale, in SetScale() 242 f32 vScale in SetScale() 253 void SetScale(f32 hvScale) in SetScale() 263 f32 GetScaleH() const { return m_Scale.x; } in GetScaleH() 269 f32 GetScaleV() const { return m_Scale.y; } in GetScaleV() 277 f32 width, 278 f32 height); 284 void SetFontSize(f32 height); 291 f32 GetFontWidth() const; 298 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-4.2.5/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 …]
|
| /CTR-SDK-4.2.5/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-4.2.5/include/nn/math/inline/ |
| D | math_Matrix34.ipp | 75 MTX34RotAxisFIdx(MTX34* pOut, const VEC3* pAxis, f32 fIdx) 84 MTX34RotXYZTranslateFIdx(MTX34* pOut, f32 fIdxX, f32 fIdxY, f32 fIdxZ, const VEC3* pT) 115 …extureProjectionFrustum(MTX34* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 scaleS, f32 scaleT, f3… 121 f32 reverseWidth = 1.0f / (r - l); 123 f32 (*const mtx)[4] = pOut->m; 130 f32 reverseHeight = 1.0f / (t - b); 144 MTX34TextureProjectionOrtho(MTX34* pOut, f32 l, f32 r, f32 b, f32 t, f32 scaleS, f32 scaleT, f32 tr… 150 f32 reverseWidth = 1.0f / (r - l); 152 f32 (*const mtx)[4] = pOut->m; 159 f32 reverseHeight = 1.0f / (t - b); [all …]
|