Home
last modified time | relevance | path

Searched refs:z (Results 1 – 25 of 35) sorted by relevance

12

/CTR-SDK-1.3.0/CTR_SDK/include/nn/math/inline/
Dmath_Vector3.ipp40 return p->x == 0.f && p->y == 0.f && p->z == 0.f;
57 pOut->z = (p1->z > p2->z) ? p1->z : p2->z;
78 pOut->z = (p1->z < p2->z) ? p1->z : p2->z;
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 );
109 pOut->z = tmpVec.z;
131 register f32 x, y, z, mag;
135 z = p->z;
137 mag = (x * x) + (y * y) + (z * z);
[all …]
Dmath_Vector4.ipp37 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;
67 pOut->z = p1->z + p2->z;
87 pOut->z = p1->z - p2->z;
107 pOut->z = p1->z * p2->z;
126 pOut->z = scale * p->z;
148 pOut->z = p1->z + t * (p2->z - p1->z);
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;
272 pOut->z = (p1->z > p2->z) ? p1->z : p2->z;
[all …]
Dmath_Quaternion.ipp47 pOut->z = q1->z + q2->z;
73 pOut->z = q1->z - q2->z;
120 return (q1->x * q2->x + q1->y * q2->y + q1->z * q2->z + q1->w * q2->w);
142 pOut->z = q->z * scale;
170 theta = ::std::sqrtf( q->x * q->x + q->y * q->y + q->z * q->z );
180 pOut->z = scale * q->z;
204 scale = q->x * q->x + q->y * q->y + q->z * q->z;
216 pOut->z = scale * q->z;
242 pOut->z = t * ( q2->z - q1->z ) + q1->z;
268 cos_th = q1->x * q2->x + q1->y * q2->y + q1->z * q2->z + q1->w * q2->w;
[all …]
Dmath_Types.ipp118 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];
125 pOut->z = vTmp.z;
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;
181 pOut->z = tmp.z;
207 tmp.x = pM->f._00 * pV->x + pM->f._01 * pV->y + pM->f._02 * pV->z;
208 tmp.y = pM->f._10 * pV->x + pM->f._11 * pV->y + pM->f._12 * pV->z;
[all …]
/CTR-SDK-1.3.0/CTR_SDK/include/nn/math/ARMv6/inline/
Dmath_Quaternion.ipp57 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;
78 q1z = q1->z;
83 q2z = q2->z;
88 z = q1w * q2z + q1z * q2w + q1x * q2y - q1y * q2x;
93 pOut->z = z;
117 mag = (q->x * q->x) + (q->y * q->y) + (q->z * q->z) + (q->w * q->w);
[all …]
Dmath_Vector3.ipp44 f32 mag = (p->x * p->x) + (p->y * p->y) + (p->z * p->z);
52 pOut->z = p->z * mag;
64 register f32 x, y, z, mag;
68 z = p->z;
70 mag = (x * x) + (y * y) + (z * z);
78 z *= mag;
82 pOut->z = z;
Dmath_Matrix34.ipp46 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;
54 pOut->z = pDst->z;
217 m[2][0] = 0.0f; m[2][1] = 0.0f; m[2][2] = pS->z; m[2][3] = 0.0f;
260 pOut->f._02 = pM->f._02 * pS->z;
261 pOut->f._12 = pM->f._12 * pS->z;
262 pOut->f._22 = pM->f._22 * pS->z;
300 dst[2][0] = src[2][0] * pS->z; dst[2][1] = src[2][1] * pS->z;
301 dst[2][2] = src[2][2] * pS->z; dst[2][3] = src[2][3] * pS->z;
[all …]
Dmath_Types.ipp123 pOut->z = (m[1][0] - m[0][1]) * s;
144 pOut->z = q[2];
163 f32 x, y, z, w, s;
169 z = (m[1][0] - m[0][1]) * s;
173 pOut->z = z;
177 f32 x, y, z, w, s;
200 z = (m[0][2] + m[2][0]) * s;
205 pOut->z = z;
218 z = (m[1][2] + m[2][1]) * s;
223 pOut->z = z;
[all …]
Dmath_Matrix44.ipp40 tmp.x = pM->f._00 * pV->x + pM->f._01 * pV->y + pM->f._02 * pV->z + pM->f._03;
41 tmp.y = pM->f._10 * pV->x + pM->f._11 * pV->y + pM->f._12 * pV->z + pM->f._13;
42 tmp.z = pM->f._20 * pV->x + pM->f._21 * pV->y + pM->f._22 * pV->z + pM->f._23;
43 tmp.w = pM->f._30 * pV->x + pM->f._31 * pV->y + pM->f._32 * pV->z + pM->f._33;
47 pOut->z = tmp.z;
970 f32 x, y, z; // x, y, z components of normalized axis
971 f32 xSq, ySq, zSq; // x, y, z squared
987 z = vN.z;
991 zSq = z * z;
994 m[0][1] = ( t * x * y ) - ( s * z );
[all …]
/CTR-SDK-1.3.0/CTR_SDK/include/nn/math/
Dmath_Vector3.h62 f32 z; 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; }
264 pOut->z = p1->z + p2->z; in VEC3Add()
[all …]
Dmath_Vector4.h56 f32 z; 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…
Dmath_Quaternion.h59 f32 z; member
70 QUAT(const f32* p) { x = p[0]; y = p[1]; z = p[2]; w = p[3]; } in QUAT()
71 QUAT(const QUAT_& rhs) { x = rhs.x; y = rhs.y; z = rhs.z; w = rhs.w; } in QUAT()
72 QUAT(f32 fx, f32 fy, f32 fz, f32 fw) { x = fx; y = fy; z = fz; w = fw; } in QUAT()
88 self_type operator - () const { return self_type(-x, -y, -z, -w); }
95 …bool operator == (const self_type& rhs) const { return x == rhs.x && y == rhs.y && z == rhs.z && w…
96 …bool operator != (const self_type& rhs) const { return x != rhs.x || y != rhs.y || z != rhs.z || w…
/CTR-SDK-1.3.0/CTR_SDK/include/nn/hid/CTR/
Dhid_DeviceStatus.h141 s16 z; member
154 f32 z; member
169 nn::math::VEC3 z; member
178 :x(vecx),y(vecy),z(vecz){} in Direction()
182 :x(mtx33.v[0]),y(mtx33.v[1]),z(mtx33.v[2]){} in Direction()
188 x.x,x.y,x.z, in ToMTX33()
189 y.x,y.y,y.z, in ToMTX33()
190 z.x,z.y,z.z); in ToMTX33()
/CTR-SDK-1.3.0/CTR_SDK/sources/libraries/math/
Dmath_Geometry.cpp51 if (Pmin.z > Pmax.z) in Normalize()
52 ::std::swap(Pmin.z, Pmax.z); in Normalize()
73 if (arrayPoint[i].z < Pmin.z) in Set()
74 Pmin.z = arrayPoint[i].z; in Set()
75 else if (arrayPoint[i].z > Pmax.z) in Set()
76 Pmax.z = arrayPoint[i].z; in Set()
94 b0 = M->f._02 * box->Pmin.z; in Set()
95 b1 = M->f._02 * box->Pmax.z; in Set()
109 b0 = M->f._12 * box->Pmin.z; in Set()
110 b1 = M->f._12 * box->Pmax.z; in Set()
[all …]
Dmath_Transform.cpp65 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()
Dmath_Vector3.cpp47 NN_MATH_REPORT("<%f, %f, %f>", x, y, z); in Report()
Dmath_Vector4.cpp48 NN_MATH_REPORT("<%f, %f, %f, %f>", x, y, z, w); in Report()
Dmath_Quaternion.cpp45 NN_MATH_REPORT("<%f, %f, %f, %f>", x, y, z, w); in Report()
/CTR-SDK-1.3.0/CTR_SDK/include/nn/font/CTR/
Dfont_CharWriter.h389 f32 z in SetCursor() argument
394 m_CursorPos.z = z; in SetCursor()
425 m_CursorPos.z += dz; in MoveCursor()
444 void SetCursorZ(f32 z) { m_CursorPos.z = z; } in SetCursorZ() argument
462 void MoveCursorZ(f32 dz) { m_CursorPos.z += dz; } in MoveCursorZ()
480 f32 GetCursorZ() const { return m_CursorPos.z; } in GetCursorZ()
/CTR-SDK-1.3.0/CTR_SDK/include/nn/gr/CTR/
Dgr_Utility.h113 *command++ = nn::math::F32AsU32( vec4.z ); in MakeUniformCommandVS()
138 *command++ = nn::math::F32AsU32( vec4[0].z ); in MakeUniformCommandVS()
145 *command++ = nn::math::F32AsU32( vec4[i].z ); in MakeUniformCommandVS()
168 inline bit32* MakeUniformCommandVS( bit32* command, u8 location, u8 x, u8 y, u8 z ) in MakeUniformCommandVS() argument
170 *command++ = PICA_CMD_DATA_VS_INT( x, y, z ); in MakeUniformCommandVS()
229 *command++ = nn::math::F32AsU32( vec4.z ); // b in MakeUniformCommandGS()
253 *command++ = nn::math::F32AsU32( vec4[0].z ); in MakeUniformCommandGS()
260 *command++ = nn::math::F32AsU32( vec4[i].z ); in MakeUniformCommandGS()
283 inline bit32* MakeUniformCommandGS( bit32* command, u8 location, u8 x, u8 y, u8 z ) in MakeUniformCommandGS() argument
285 *command++ = PICA_CMD_DATA_GS_INT( x, y, z ); in MakeUniformCommandGS()
Dgr_BindSymbol.h215 bit32* MakeUniformCommand( bit32* command, u8 x, u8 y, u8 z ) const in MakeUniformCommand() argument
217 return MakeUniformCommandVS( command, start, x, y, z ); in MakeUniformCommand()
313 bit32* MakeUniformCommand( bit32* command, u8 x, u8 y, u8 z ) const in MakeUniformCommand() argument
315 return MakeUniformCommandGS( command, start, x, y, z ); in MakeUniformCommand()
Dgr_FragmentLight.h214 … posZ = PICA_CMD_DATA_FRAG_LIGHT_POSITION_Z( Float32ToFloat16( position.z ) ); in SetPosition()
244 …potDirectionZ = PICA_CMD_DATA_FRAG_LIGHT_SPOT_Z( Float32ToFix13Fraction11( -spot_direction.z ) ); in SetSpotDirection()
/CTR-SDK-1.3.0/CTR_SDK/include/nn/gx/CTR/
Dgx_MacroFragment.h103 #define PICA_CMD_DATA_FRAG_LIGHT_POSITION_Z(z) ( z ) argument
106 #define PICA_CMD_DATA_FRAG_LIGHT_SPOT_Z(z) ( z ) argument
Dgx_MacroShader.h179 #define PICA_CMD_DATA_VS_INT(x, y, z) ( (x) | (y) << 8 | (z) << 16 ) argument
687 #define PICA_CMD_DATA_GS_INT(x, y, z) ( (x) | (y) << 8 | (z) << 16 ) argument
/CTR-SDK-1.3.0/CTR_SDK/build/omake/
Dtooldefs.om26 7ZIP = $(get-registry HKEY_LOCAL_MACHINE, SOFTWARE\\7-Zip, Path)$(DIRSEP)7z.exe

12