| /CTR-SDK-0.14.4/include/nn/math/ |
| D | math_Vector2.h | 48 f32 y; member 78 VEC2(const f32* p) { x = p[0]; y = p[1]; } in VEC2() 80 VEC2(const VEC2_& v) { x = v.x; y = v.y; } in VEC2() 82 VEC2(f32 fx, f32 fy) { x = fx; y = fy; } in VEC2() 99 self_type& operator += (const self_type& rhs) { x += rhs.x; y += rhs.y; return *this; } 100 self_type& operator -= (const self_type& rhs) { x -= rhs.x; y -= rhs.y; return *this; } 101 self_type& operator *= (const self_type& rhs) { x *= rhs.x; y *= rhs.y; return *this; } 102 self_type& operator *= (f32 f) { x *= f; y *= f; return *this; } 103 self_type& operator /= (f32 f) { f32 r = 1.f / f; x *= r; y *= r; return *this; } 106 self_type operator - () const { return self_type(-x, -y); } [all …]
|
| D | math_Vector3.h | 61 f32 y; member 90 VEC3(const f32* p) { x = p[0]; y = p[1]; z = p[2]; } in VEC3() 92 VEC3(const VEC3_& v) { x = v.x; y = v.y; z = v.z; } in VEC3() 94 VEC3(f32 fx, f32 fy, f32 fz) { x = fx; y = fy; z = fz; } in VEC3() 118 self_type operator - () const { return self_type(-x, -y, -z); } 214 void Set(f32 fx, f32 fy, f32 fz) { x = fx; y = fy; z = fz; } in Set() 217 void Set(const self_type& value) { x = value.x; y = value.y; z = value.z; } in Set() 225 bool operator == (const self_type& rhs) const { return x == rhs.x && y == rhs.y && z == rhs.z; } 228 bool operator != (const self_type& rhs) const { return x != rhs.x || y != rhs.y || z != rhs.z; } 263 pOut->y = p1->y + p2->y; in VEC3Add() [all …]
|
| D | math_Triangular.h | 232 inline f32 NN_fAtan2(f32 y, f32 x) { return ::std::atan2f(y, x); } in NN_fAtan2() argument 265 f32 Atan2FIdx(f32 y, f32 x); 311 inline f32 Atan2Rad(f32 y, f32 x) { return NN_MATH_FIDX_TO_RAD(Atan2FIdx(y, x)); } in Atan2Rad() argument 361 inline f32 Atan2Deg(f32 y, f32 x) { return NN_MATH_FIDX_TO_DEG(Atan2FIdx(y, x)); } in Atan2Deg() argument 406 u16 Atan2Idx(f32 y, f32 x);
|
| D | math_Vector4.h | 55 f32 y; member 96 VEC4(const f32* p) { x = p[0]; y = p[1]; z = p[2]; w = p[3]; } in VEC4() 98 VEC4(const VEC4_& v) { x = v.x; y = v.y; z = v.z; w = v.w; } in VEC4() 100 VEC4(f32 fx, f32 fy, f32 fz, f32 fw) { x = fx; y = fy; z = fz; w = fw; } in VEC4() 102 VEC4(const VEC3& v) { x = v.x; y = v.y; z = v.z; w = 0.0f; } in VEC4() 128 self_type operator - () const { return self_type(-x, -y, -z, -w); } 214 void Set(f32 fx, f32 fy, f32 fz, f32 fw) { x = fx; y = fy; z = fz; w = fw; } in Set() 223 …bool operator == (const self_type& rhs) const { return x == rhs.x && y == rhs.y && z == rhs.z && w… 226 …bool operator != (const self_type& rhs) const { return x != rhs.x || y != rhs.y || z != rhs.z || w…
|
| /CTR-SDK-0.14.4/include/nn/math/inline/ |
| D | math_Vector3.ipp | 40 return p->x == 0.f && p->y == 0.f && p->z == 0.f; 56 pOut->y = (p1->y > p2->y) ? p1->y : p2->y; 77 pOut->y = (p1->y < p2->y) ? p1->y : p2->y; 103 tmpVec.x = ( p1->y * p2->z ) - ( p1->z * p2->y ); 104 tmpVec.y = ( p1->z * p2->x ) - ( p1->x * p2->z ); 105 tmpVec.z = ( p1->x * p2->y ) - ( p1->y * p2->x ); 108 pOut->y = tmpVec.y; 131 register f32 x, y, z, mag; 134 y = p->y; 137 mag = (x * x) + (y * y) + (z * z); [all …]
|
| D | math_Vector2.ipp | 38 return p->x == 0.f && p->y == 0.f; 54 pOut->y = (p1->y > p2->y) ? p1->y : p2->y; 73 pOut->y = (p1->y < p2->y) ? p1->y : p2->y; 90 (void)VEC2Scale(pOut, p, FrSqrt(p->x * p->x + p->y * p->y)); 111 f32 mag = (p->x * p->x) + (p->y * p->y);
|
| D | math_Vector4.ipp | 37 return p->x == 0.f && p->y == 0.f && p->z == 0.f && p->w == 0.f; 50 return p->x == 0.f && p->y == 0.f && p->z == 0.f && p->w == 1.f; 66 pOut->y = p1->y + p2->y; 86 pOut->y = p1->y - p2->y; 106 pOut->y = p1->y * p2->y; 125 pOut->y = scale * p->y; 147 pOut->y = p1->y + t * (p2->y - p1->y); 165 return p1->x * p2->x + p1->y * p2->y + p1->z * p2->z + p1->w * p2->w; 179 return p->x * p->x + p->y * p->y + p->z * p->z + p->w * p->w; 271 pOut->y = (p1->y > p2->y) ? p1->y : p2->y; [all …]
|
| D | math_Types.ipp | 68 tmp.y = pV->y; 76 pOut->x = pM->f._00 * pVec->x + pM->f._01 * pVec->y + pM->f._02; 77 pOut->y = pM->f._10 * pVec->x + pM->f._11 * pVec->y + pM->f._12; 118 vTmp.x = m[0][0] * pV->x + m[0][1] * pV->y + m[0][2] * pV->z + m[0][3]; 119 vTmp.y = m[1][0] * pV->x + m[1][1] * pV->y + m[1][2] * pV->z + m[1][3]; 120 vTmp.z = m[2][0] * pV->x + m[2][1] * pV->y + m[2][2] * pV->z + m[2][3]; 124 pOut->y = vTmp.y; 175 tmp.x = pM->f._00 * pV->x + pM->f._01 * pV->y + pM->f._02 * pV->z; 176 tmp.y = pM->f._10 * pV->x + pM->f._11 * pV->y + pM->f._12 * pV->z; 177 tmp.z = pM->f._20 * pV->x + pM->f._21 * pV->y + pM->f._22 * pV->z; [all …]
|
| D | math_Quaternion.ipp | 46 pOut->y = q1->y + q2->y; 72 pOut->y = q1->y - q2->y; 120 return (q1->x * q2->x + q1->y * q2->y + q1->z * q2->z + q1->w * q2->w); 141 pOut->y = q->y * scale; 170 theta = ::std::sqrtf( q->x * q->x + q->y * q->y + q->z * q->z ); 179 pOut->y = scale * q->y; 204 scale = q->x * q->x + q->y * q->y + q->z * q->z; 215 pOut->y = scale * q->y; 241 pOut->y = t * ( q2->y - q1->y ) + q1->y; 268 cos_th = q1->x * q2->x + q1->y * q2->y + q1->z * q2->z + q1->w * q2->w; [all …]
|
| /CTR-SDK-0.14.4/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-0.14.4/sources/libraries/math/ |
| D | math_Triangular.cpp | 589 f32 Atan2FIdx(f32 y, f32 x) in Atan2FIdx() argument 596 if( x == 0.f && y == 0.f ) in Atan2FIdx() 603 if( y >= 0.f ) in Atan2FIdx() 605 if( x >= y ) in Atan2FIdx() 609 b = y; in Atan2FIdx() 616 a = y; in Atan2FIdx() 624 if( x >= -y ) in Atan2FIdx() 628 b = -y; in Atan2FIdx() 635 a = -y; in Atan2FIdx() 644 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 …]
|
| D | math_Geometry.cpp | 49 if (Pmin.y > Pmax.y) in Normalize() 50 ::std::swap(Pmin.y, Pmax.y); in Normalize() 68 if (arrayPoint[i].y < Pmin.y) in Set() 69 Pmin.y = arrayPoint[i].y; in Set() 70 else if (arrayPoint[i].y > Pmax.y) in Set() 71 Pmax.y = arrayPoint[i].y; in Set() 92 a0 = M->f._01 * box->Pmin.y; in Set() 93 a1 = M->f._01 * box->Pmax.y; in Set() 107 a0 = M->f._11 * box->Pmin.y; in Set() 108 a1 = M->f._11 * box->Pmax.y; in Set() [all …]
|
| /CTR-SDK-0.14.4/include/nn/hid/CTR/ |
| D | hid_DeviceStatus.h | 89 s16 y; member 118 u16 y; member 132 s16 y; member 145 f32 y; member 159 nn::math::VEC3 y; member 171 :x(vecx),y(vecy),z(vecz){} in Direction() 175 :x(mtx33.v[0]),y(mtx33.v[1]),z(mtx33.v[2]){} in Direction() 181 x.x,x.y,x.z, in ToMTX33() 182 y.x,y.y,y.z, in ToMTX33() 183 z.x,z.y,z.z); in ToMTX33()
|
| /CTR-SDK-0.14.4/include/nn/font/CTR/ |
| D | font_CharWriter.h | 251 m_Scale.y = vScale; in SetScale() 261 m_Scale.y = hvScale; in SetScale() 274 f32 GetScaleV() const { return m_Scale.y; } in GetScaleV() 377 f32 y in SetCursor() argument 381 m_CursorPos.y = y; in SetCursor() 392 f32 y, in SetCursor() argument 397 m_CursorPos.y = y; in SetCursor() 412 m_CursorPos.y += dy; in MoveCursor() 428 m_CursorPos.y += dy; in MoveCursor() 442 void SetCursorY(f32 y) { m_CursorPos.y = y; } in SetCursorY() argument [all …]
|
| D | font_RectDrawerCommand.h | 97 #define NN_FONT_CMD_SET_VIEWPORT( x, y, width, height ) \ argument 104 PICA_CMD_DATA_VIEWPORT_XY( static_cast<u16>(x), static_cast<u16>(y) ), \ 132 #define NN_FONT_CMD_SET_SCISSOR( x, y, w, h, cbSz ) \ argument 136 | NN_FONT_CMD_SCISSOR_VAL( y, (cbSz).height ) << 16, \ 138 | NN_FONT_CMD_SCISSOR_VAL( (y) + (h) - 1, (cbSz).height ) << 16
|
| /CTR-SDK-0.14.4/include/nn/gr/CTR/ |
| D | gr_Viewport.h | 39 Viewport( void ) : x( 0 ), y( 0 ), width( 240 ), height( 320 ) {} in Viewport() 49 …Viewport( s32 x_, s32 y_, u32 width_, u32 height_ ) : x( x_ ), y( y_ ), width( width_ ), height( h… in Viewport() 73 x = x_; y = y_; width = width_; height = height_; in Set() 85 s32 y; variable
|
| D | gr_Scissor.h | 37 …Scissor() : isEnable( true ), x( 0 ), y( 0 ), width( 240 ), height( 320 ), bufferWidth( 256 ), buf… in Scissor() 51 …: isEnable( isEnable_ ), x( x_ ), y( y_ ), width( width_ ), height( height_ ), bufferWidth( buffer… in Scissor() 74 x = x_; y = y_; width = width_; height = height_; in Set() 103 s32 y; variable
|
| /CTR-SDK-0.14.4/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-0.14.4/sources/libraries/gr/CTR/ |
| D | gr_Scissor.cpp | 28 s32 temp_height = y + height - 1; in MakeCommand() 32 *command++ = PICA_CMD_DATA_SCISSOR_XY( x, y, bufferWidth, bufferHeight ); in MakeCommand()
|
| /CTR-SDK-0.14.4/include/nn/gx/CTR/ |
| D | gx_MacroMisc.h | 452 #define PICA_CMD_DATA_VIEWPORT_XY(x, y) ( (x) | (y) << 16 ) argument 823 #define PICA_CMD_DATA_SCISSOR_XY( x, y, colorBufferWidth, colorBufferHeight) \ argument 825 ( ((y) < 0) ? 0 : ( (y >= colorBufferHeight) ? (colorBufferHeight - 1) : (y) ) << 16 ) 829 #define PICA_CMD_DATA_SCISSOR_SIZE( x, y ) \ argument 831 ( ((y) < 0) ? 0 : (y)) << 16 )
|