| /CTR-SDK-4.2.5/include/nn/math/inline/ |
| D | math_Vector3.ipp | 34 tmpVec.x = ( p1->y * p2->z ) - ( p1->z * p2->y ); 35 tmpVec.y = ( p1->z * p2->x ) - ( p1->x * p2->z ); 36 tmpVec.z = ( p1->x * p2->y ) - ( p1->y * p2->x ); 39 pOut->y = tmpVec.y; 48 return p->x == 0.f && p->y == 0.f && p->z == 0.f; 55 pOut->y = (p1->y > p2->y) ? p1->y : p2->y; 65 pOut->y = (p1->y < p2->y) ? p1->y : p2->y; 77 register f32 x, y, z, mag; 80 y = p->y; 83 mag = (x * x) + (y * y) + (z * z); [all …]
|
| D | math_Vector4.ipp | 27 pOut->y = p1->y + p2->y; 44 return p1->x * p2->x + p1->y * p2->y + p1->z * p2->z + p1->w * p2->w; 50 return p->x == 0.f && p->y == 0.f && p->z == 0.f && p->w == 0.f; 56 return p->x == 0.f && p->y == 0.f && p->z == 0.f && p->w == 1.f; 69 return p->x * p->x + p->y * p->y + p->z * p->z + p->w * p->w; 78 pOut->y = p1->y + t * (p2->y - p1->y); 89 pOut->y = (p1->y > p2->y) ? p1->y : p2->y; 99 pOut->y = p1->y * p2->y; 137 pOut->y = (p1->y < p2->y) ? p1->y : p2->y; 148 pOut->y = scale * p->y; [all …]
|
| D | math_Vector2.ipp | 25 return p->x == 0.f && p->y == 0.f; 32 pOut->y = (p1->y > p2->y) ? p1->y : p2->y; 41 pOut->y = (p1->y < p2->y) ? p1->y : p2->y; 49 (void)VEC2Scale(pOut, p, FrSqrt(p->x * p->x + p->y * p->y)); 60 f32 mag = (p->x * p->x) + (p->y * p->y);
|
| D | math_Quaternion.ipp | 31 pOut->y = q1->y + q2->y; 59 return (q1->x * q2->x + q1->y * q2->y + q1->z * q2->z + q1->w * q2->w); 73 theta = ::std::sqrtf( q->x * q->x + q->y * q->y + q->z * q->z ); 82 pOut->y = scale * q->y; 97 pOut->y = t * ( q2->y - q1->y ) + q1->y; 112 scale = q->x * q->x + q->y * q->y + q->z * q->z; 123 pOut->y = scale * q->y; 139 dot = q->x * qto->x + q->y * qto->y + q->z * qto->z + q->w * qto->w; 144 pOut->y = -q->y; 172 pOut->y = sh * nAxis.y; [all …]
|
| D | math_Types.ipp | 58 tmp.y = pV->y; 66 pOut->x = pM->f._00 * pVec->x + pM->f._01 * pVec->y + pM->f._02; 67 pOut->y = pM->f._10 * pVec->x + pM->f._11 * pVec->y + pM->f._12; 97 vTmp.x = m[0][0] * pV->x + m[0][1] * pV->y + m[0][2] * pV->z + m[0][3]; 98 vTmp.y = m[1][0] * pV->x + m[1][1] * pV->y + m[1][2] * pV->z + m[1][3]; 99 vTmp.z = m[2][0] * pV->x + m[2][1] * pV->y + m[2][2] * pV->z + m[2][3]; 103 pOut->y = vTmp.y; 133 tmp.x = pM->f._00 * pV->x + pM->f._01 * pV->y + pM->f._02 * pV->z; 134 tmp.y = pM->f._10 * pV->x + pM->f._11 * pV->y + pM->f._12 * pV->z; 135 tmp.z = pM->f._20 * pV->x + pM->f._21 * pV->y + pM->f._22 * pV->z; [all …]
|
| /CTR-SDK-4.2.5/include/nn/math/ |
| D | math_Vector2.h | 198 f32 y; // member 238 explicit VEC2(const f32* p) { x = p[0]; y = p[1]; } in VEC2() 240 VEC2(const VEC2_& v) { x = v.x; y = v.y; } in VEC2() 242 VEC2(f32 fx, f32 fy) { x = fx; y = fy; } in VEC2() 261 self_type& operator += (const self_type& rhs) { x += rhs.x; y += rhs.y; return *this; } 264 self_type& operator -= (const self_type& rhs) { x -= rhs.x; y -= rhs.y; return *this; } 267 self_type& operator *= (f32 f) { x *= f; y *= f; return *this; } 270 self_type& operator *= (const self_type& rhs) { x *= rhs.x; y *= rhs.y; return *this; } 273 self_type& operator /= (f32 f) { f32 r = 1.f / f; x *= r; y *= r; return *this; } 279 self_type operator - () const { return self_type(-x, -y); } [all …]
|
| D | math_Vector3.h | 223 f32 y; // member 261 explicit VEC3(const f32* p) { x = p[0]; y = p[1]; z = p[2]; } in VEC3() 263 VEC3(const VEC3_& v) { x = v.x; y = v.y; z = v.z; } in VEC3() 265 VEC3(f32 fx, f32 fy, f32 fz) { x = fx; y = fy; z = fz; } in VEC3() 301 self_type operator - () const { return self_type(-x, -y, -z); } 404 void Set(f32 fx, f32 fy, f32 fz) { x = fx; y = fy; z = fz; } in Set() 407 void Set(const self_type& value) { x = value.x; y = value.y; z = value.z; } in Set() 415 bool operator == (const self_type& rhs) const { return x == rhs.x && y == rhs.y && z == rhs.z; } 418 bool operator != (const self_type& rhs) const { return x != rhs.x || y != rhs.y || z != rhs.z; } 449 pOut->y = p1->y + p2->y; in VEC3Add() [all …]
|
| D | math_Vector4.h | 208 f32 y; // member 258 explicit VEC4(const f32* p) { x = p[0]; y = p[1]; z = p[2]; w = p[3]; } in VEC4() 260 VEC4(const VEC4_& v) { x = v.x; y = v.y; z = v.z; w = v.w; } in VEC4() 262 VEC4(f32 fx, f32 fy, f32 fz, f32 fw) { x = fx; y = fy; z = fz; w = fw; } in VEC4() 264 explicit VEC4(const VEC3& v) { x = v.x; y = v.y; z = v.z; w = 0.0f; } in VEC4() 303 self_type operator - () const { return self_type(-x, -y, -z, -w); } 396 void Set(f32 fx, f32 fy, f32 fz, f32 fw) { x = fx; y = fy; z = fz; w = fw; } in Set() 405 …bool operator == (const self_type& rhs) const { return x == rhs.x && y == rhs.y && z == rhs.z && w… 408 …bool operator != (const self_type& rhs) const { return x != rhs.x || y != rhs.y || z != rhs.z || w…
|
| D | math_Triangular.h | 269 NN_MATH_INLINE f32 NN_fAtan2(f32 y, f32 x) { return ::std::atan2f(y, x); } in NN_fAtan2() argument 320 f32 Atan2FIdx(f32 y, f32 x); 366 NN_MATH_INLINE f32 Atan2Rad(f32 y, f32 x) { return NN_MATH_FIDX_TO_RAD(Atan2FIdx(y, x)); } in Atan2Rad() argument 416 NN_MATH_INLINE f32 Atan2Deg(f32 y, f32 x) { return NN_MATH_FIDX_TO_DEG(Atan2FIdx(y, x)); } in Atan2Deg() argument 461 u16 Atan2Idx(f32 y, f32 x);
|
| /CTR-SDK-4.2.5/include/nn/math/ARMv6/inline/ |
| D | math_Quaternion.ipp | 57 pDst->w = q1->w * q2->w - q1->x * q2->x - q1->y * q2->y - q1->z * q2->z; 58 pDst->x = q1->w * q2->x + q1->x * q2->w + q1->y * q2->z - q1->z * q2->y; 59 pDst->y = q1->w * q2->y + q1->y * q2->w + q1->z * q2->x - q1->x * q2->z; 60 pDst->z = q1->w * q2->z + q1->z * q2->w + q1->x * q2->y - q1->y * q2->x; 72 register f32 x, y, z, w; 77 q1y = q1->y; 82 q2y = q2->y; 87 y = q1w * q2y + q1y * q2w + q1z * q2x - q1x * q2z; 92 pOut->y = y; 117 mag = (q->x * q->x) + (q->y * q->y) + (q->z * q->z) + (q->w * q->w); [all …]
|
| D | math_Vector3.ipp | 44 f32 mag = (p->x * p->x) + (p->y * p->y) + (p->z * p->z); 51 pOut->y = p->y * mag; 64 register f32 x, y, z, mag; 67 y = p->y; 70 mag = (x * x) + (y * y) + (z * z); 77 y *= mag; 81 pOut->y = y;
|
| D | math_Matrix34.ipp | 46 pDst->x = pM->f._00 * pV->x + pM->f._01 * pV->y + pM->f._02 * pV->z + pM->f._03; 47 pDst->y = pM->f._10 * pV->x + pM->f._11 * pV->y + pM->f._12 * pV->z + pM->f._13; 48 pDst->z = pM->f._20 * pV->x + pM->f._21 * pV->y + pM->f._22 * pV->z + pM->f._23; 53 pOut->y = pDst->y; 216 m[1][0] = 0.0f; m[1][1] = pS->y; m[1][2] = 0.0f; m[1][3] = 0.0f; 256 pOut->f._01 = pM->f._01 * pS->y; 257 pOut->f._11 = pM->f._11 * pS->y; 258 pOut->f._21 = pM->f._21 * pS->y; 297 dst[1][0] = src[1][0] * pS->y; dst[1][1] = src[1][1] * pS->y; 298 dst[1][2] = src[1][2] * pS->y; dst[1][3] = src[1][3] * pS->y; [all …]
|
| D | math_Types.ipp | 122 pOut->y = (m[0][2] - m[2][0]) * s; 143 pOut->y = q[1]; 163 f32 x, y, z, w, s; 168 y = (m[0][2] - m[2][0]) * s; 172 pOut->y = y; 177 f32 x, y, z, w, s; 199 y = (m[0][1] + m[1][0]) * s; 204 pOut->y = y; 212 y = s * 0.5f; 221 pOut->y = y; [all …]
|
| /CTR-SDK-4.2.5/sources/libraries/dbg/CTR/ |
| D | dbg_DirectPrint.cpp | 93 nn::gx::UpdateBuffer( m_CurBuffer, byteByDot * m_BufferSize.x * m_BufferSize.y ); in Flush() 178 cursor.y += FONT_HEIGHT; in PutString() 216 for( s32 y = 0; y < FONT_WIDTH; y++ ) in PutChar() local 219 if ( bufPos.y + y >= m_BufferSize.x || bufPos.y + y < 0 ) in PutChar() 226 if ( bufPos.x + x >= m_BufferSize.y || bufPos.x + x < 0 ) in PutChar() 230 if( printable && FONT_BITMAP[ c - ' ' ][ int( FONT_HEIGHT ) - x - 1 ][ y ] ) in PutChar() 232 PutDot( nn::math::VEC2( bufPos.x + x, bufPos.y + y ), charColorData, byteByDot ); in PutChar() 238 PutDot( nn::math::VEC2( bufPos.x + x, bufPos.y + y ), bgColorData, byteByDot ); in PutChar() 259 ConvertPositionUserOriginToDeviceOrigin( &bufPos, pos + nn::math::VEC2( 0, size.y ) ); in Clear() 261 for( s32 y = 0; y < size.x; y++ ) in Clear() local [all …]
|
| /CTR-SDK-4.2.5/sources/libraries/math/ |
| D | math_Triangular.cpp | 599 f32 Atan2FIdx(f32 y, f32 x) in Atan2FIdx() argument 606 if( x == 0.f && y == 0.f ) in Atan2FIdx() 613 if( y >= 0.f ) in Atan2FIdx() 615 if( x >= y ) in Atan2FIdx() 619 b = y; in Atan2FIdx() 626 a = y; in Atan2FIdx() 634 if( x >= -y ) in Atan2FIdx() 638 b = -y; in Atan2FIdx() 645 a = -y; in Atan2FIdx() 654 if( y >= 0.f ) in Atan2FIdx() [all …]
|
| D | math_Transform.cpp | 42 NN_MATH_REPORT("Scale <%f, %f>\n", scale.x, scale.y); in Report() 43 NN_MATH_REPORT("Rotate <%f, %f>\n", rotate.x, rotate.y); in Report() 44 NN_MATH_REPORT("Translate<%f, %f>\n", translate.x, translate.y); in Report() 65 NN_MATH_REPORT("Scale <%f, %f, %f>\n", scale.x, scale.y, scale.z); in Report() 66 NN_MATH_REPORT("Rotate <%f, %f, %f>\n", rotate.x, rotate.y, rotate.z); in Report() 67 NN_MATH_REPORT("Translate<%f, %f, %f>\n", translate.x, translate.y, translate.z); in Report()
|
| D | math_Arithmetic.cpp | 668 int p, y; in IExp() local 670 y = 1; in IExp() 674 if (n & 1) { y *= p; } in IExp() 676 if (n == 0) { return y; } in IExp() 693 u32 y; in ILog10() local 698 y = (19 * (31 - CntLz(x))) >> 6; in ILog10() 699 y += ((table2[y + 1] - x) >> 31); in ILog10() 701 return y; in ILog10() 721 unsigned int y; in CntLz_() local 727 y = x >> c; in CntLz_() [all …]
|
| /CTR-SDK-4.2.5/include/nn/hid/CTR/ |
| D | hid_DeviceStatus.h | 120 s16 y; member 149 u16 y; member 163 s16 y; member 176 f32 y; member 190 nn::math::VEC3 y; member 202 :x(vecx),y(vecy),z(vecz){} in Direction() 206 :x(mtx33.v[0]),y(mtx33.v[1]),z(mtx33.v[2]){} in Direction() 212 x.x,x.y,x.z, in ToMTX33() 213 y.x,y.y,y.z, in ToMTX33() 214 z.x,z.y,z.z); in ToMTX33()
|
| /CTR-SDK-4.2.5/include/nn/font/CTR/ |
| D | font_CharWriter.h | 246 m_Scale.y = vScale; in SetScale() 256 m_Scale.y = hvScale; in SetScale() 269 f32 GetScaleV() const { return m_Scale.y; } in GetScaleV() 372 f32 y in SetCursor() argument 376 m_CursorPos.y = y; in SetCursor() 387 f32 y, in SetCursor() argument 392 m_CursorPos.y = y; in SetCursor() 407 m_CursorPos.y += dy; in MoveCursor() 423 m_CursorPos.y += dy; in MoveCursor() 437 void SetCursorY(f32 y) { m_CursorPos.y = y; } in SetCursorY() argument [all …]
|
| /CTR-SDK-4.2.5/sources/libraries/dbg/ |
| D | dbg_Default.cpp | 61 pos.y += DirectPrint::FONT_HEIGHT; in HandleBreak() 66 pos.y += DirectPrint::FONT_HEIGHT; in HandleBreak() 71 pos.y += DirectPrint::FONT_HEIGHT; in HandleBreak() 77 pos.y += DirectPrint::FONT_HEIGHT; in HandleBreak() 80 pos.y += DirectPrint::FONT_HEIGHT; in HandleBreak() 85 pos.y = pdp->GetLastCursorPos().y + DirectPrint::FONT_HEIGHT; in HandleBreak() 88 pos.y += DirectPrint::FONT_HEIGHT; in HandleBreak()
|
| /CTR-SDK-4.2.5/include/nn/gr/CTR/ |
| D | gr_Viewport.h | 40 y( 0 ), in Viewport() 56 y( y_ ), in Viewport() 84 x = x_; y = y_; width = width_; height = height_; in Set() 96 s32 y; variable
|
| D | gr_Scissor.h | 40 y( 0 ), in Scissor() 62 y( y_ ), in Scissor() 116 x = x_; y = y_; width = width_; height = height_; in Set() 145 s32 y; variable
|
| /CTR-SDK-4.2.5/include/nn/util/ |
| D | util_Rect.h | 141 void MoveTo(f32 x, f32 y) in MoveTo() 145 bottom = y + GetHeight(); in MoveTo() 146 top = y; in MoveTo() 171 void SetOriginAndSize(f32 x, f32 y, f32 width, f32 height ) in SetOriginAndSize() 175 top = y; in SetOriginAndSize() 176 bottom = y + height; in SetOriginAndSize()
|
| /CTR-SDK-4.2.5/include/nn/gd/CTR/ |
| D | gd_Rasterizer.h | 102 … Viewport(u32 x, u32 y, u32 width, u32 height): m_X(x), m_Y(y), m_Width(width), m_Height(height) {} in Viewport() argument 120 void Set(u32 x, u32 y, u32 width, u32 height){ in Set() argument 122 m_Y = y; in Set()
|
| /CTR-SDK-4.2.5/include/nn/gx/CTR/ |
| D | gx_MacroMisc.h | 453 #define PICA_CMD_DATA_VIEWPORT_XY(x, y) ( (x) | (y) << 16 ) argument 824 #define PICA_CMD_DATA_SCISSOR_XY( x, y, colorBufferWidth, colorBufferHeight) \ argument 826 ( ((y) < 0) ? 0 : ( (y >= colorBufferHeight) ? (colorBufferHeight - 1) : (y) ) << 16 ) 830 #define PICA_CMD_DATA_SCISSOR_SIZE( x, y ) \ argument 832 ( ((y) < 0) ? 0 : (y)) << 16 )
|