Home
last modified time | relevance | path

Searched refs:t (Results 1 – 25 of 31) sorted by relevance

12

/CTR-SDK-0.14.4/include/nn/util/
Dutil_Rect.h63 Rect(f32 l, f32 t, f32 r, f32 b) in Rect()
65 top(t), in Rect()
187 const f32 t = top; in Normalize() local
193 top = (b - t) >= 0 ? t : b; in Normalize()
194 bottom = (b - t) >= 0 ? b : t; in Normalize()
/CTR-SDK-0.14.4/sources/libraries/tpl/CTR/
Dtpl_crc32.cpp199 int t = search_crc32_index(_base, num, width, crc); in search_crc32_data() local
200 if(t < 0) return -1; in search_crc32_data()
204 for(; t < (int)num; t++) in search_crc32_data()
207 const unsigned int *k = (const unsigned int *)(base + (width * t)); in search_crc32_data()
213 return t; in search_crc32_data()
Dtpl_ReadTexturePackage.cpp59 int t = search_crc32_data( in GetTextureIndex() local
62 if(t < 0) return -1; in GetTextureIndex()
63 return texHash[t].index; in GetTextureIndex()
/CTR-SDK-0.14.4/include/nn/math/
Dmath_Transform.h51 /* implicit */ Transform2(const _Transform2& t) in Transform2()
53 scale = t.scale; in Transform2()
54 rotate = t.rotate; in Transform2()
55 translate = t.translate; in Transform2()
57 Transform2(const VEC2& s, const VEC2& r, const VEC2& t) in Transform2()
61 translate = t; in Transform2()
78 /* implicit */ Transform3(const _Transform3& t) in Transform3()
80 scale = t.scale; in Transform3()
81 rotate = t.rotate; in Transform3()
82 translate = t.translate; in Transform3()
[all …]
Dmath_Matrix33.h74 NN_MATH_INLINE MTX33* MTX33MAdd(MTX33* pOut, f32 t, const MTX33* p1, const MTX33* p2);
82 NN_FORCE_INLINE MTX33* MTX33MAdd(MTX33* pOut, f32 t, const MTX33* p1, const MTX33* p2);
259 MTX33MAdd(MTX33* pOut, f32 t, const MTX33* p1, const MTX33* p2) in MTX33MAdd() argument
263 return ARMv6::MTX33MAddC(pOut, t, p1, p2); in MTX33MAdd()
265 return ARMv6::MTX33MAddC_FAST(pOut, t, p1, p2); in MTX33MAdd()
267 return ARMv6::MTX33MAddAsm(pOut, t, p1, p2); in MTX33MAdd()
341 inline MTX33* MTX33MAdd(MTX33* pOut, f32 t, const MTX33& m1, const MTX33& m2) { return MTX33MAdd( p… in MTX33MAdd() argument
Dmath_Geometry.h453 f32 DistSqPoint3ToLine3(const VEC3* P, const LINE3* L, f32* t);
454 f32 DistSqPoint3ToRay3(const VEC3* P, const RAY3* R, f32* t);
455 f32 DistSqPoint3ToSegment3(const VEC3* P, const SEGMENT3* S, f32* t);
462 f32 DistSqLine3ToLine3(const LINE3* L0, const LINE3* L1, f32* s, f32* t);
463 f32 DistSqSegment3ToSegment3(const SEGMENT3* S0, const SEGMENT3* S1, f32* s, f32* t);
464 f32 DistSqLine3ToRay3(const LINE3* L, const RAY3* R, f32* s, f32* t);
465 f32 DistSqLine3ToSegment3(const LINE3* L0, const SEGMENT3* S, f32* s, f32* t);
466 f32 DistSqRay3ToRay3(const RAY3* R0, const RAY3* R1, f32* s, f32* t);
467 f32 DistSqRay3ToSegment3(const RAY3* R0, const SEGMENT3* S, f32* s, f32* t);
477 IntersectionResult IntersectionLine3Plane(const LINE3* L, const PLANE* J, f32* t, VEC3* I);
[all …]
Dmath_Quaternion.h39 NN_MATH_INLINE QUAT* QUATLerp(QUAT* pOut, const QUAT* q1, const QUAT* q2, f32 t);
40 NN_MATH_INLINE QUAT* QUATSlerp(QUAT* pOut, const QUAT* q1, const QUAT* q2, f32 t);
42 …INE QUAT* QUATSquad(QUAT* pOut, const QUAT* p, const QUAT* a, const QUAT* b, const QUAT* q, f32 t);
220 …QUATLerp(QUAT* pOut, const QUAT& q1, const QUAT& q2, f32 t) { return QUATLerp( pOut, &q1, &q2, t )… in QUATLerp() argument
221 …ATSlerp(QUAT* pOut, const QUAT& q1, const QUAT& q2, f32 t) { return QUATSlerp( pOut, &q1, &q2, t )… in QUATSlerp() argument
223 … p, const QUAT& a, const QUAT& b, const QUAT& q, f32 t) { return QUATSquad( pOut, &p, &a, &b, &q, in QUATSquad() argument
Dmath_Vector2.h33 NN_MATH_INLINE VEC2* VEC2Lerp(VEC2* pOut, const VEC2* p1, const VEC2* p2, f32 t);
119 self_type& Lerp(const VEC2& lhs, const VEC2& rhs, f32 t) in Lerp()
121 return *VEC2Lerp(this, &lhs, &rhs, t); in Lerp()
311 VEC2Lerp(VEC2* pOut, const VEC2* p1, const VEC2* p2, f32 t) in VEC2Lerp() argument
314 pOut->x = p1->x + t * (p2->x - p1->x); in VEC2Lerp()
315 pOut->y = p1->y + t * (p2->y - p1->y); in VEC2Lerp()
395 …VEC2Lerp(VEC2* pOut, const VEC2& v1, const VEC2& v2, f32 t) { return VEC2Lerp(pOut, &v1, &v2, t); } in VEC2Lerp() argument
Dmath_Vector3.h46 inline VEC3* VEC3Lerp(VEC3* pOut, const VEC3* p1, const VEC3* p2, f32 t);
132 self_type& Lerp(const VEC3& lhs, const VEC3& rhs, f32 t) in Lerp()
134 return *VEC3Lerp(this, &lhs, &rhs, t); in Lerp()
334 VEC3Lerp(VEC3* pOut, const VEC3* p1, const VEC3* p2, f32 t) in VEC3Lerp() argument
336 pOut->x = p1->x + t * (p2->x - p1->x); in VEC3Lerp()
337 pOut->y = p1->y + t * (p2->y - p1->y); in VEC3Lerp()
338 pOut->z = p1->z + t * (p2->z - p1->z); in VEC3Lerp()
474 …VEC3Lerp(VEC3* pOut, const VEC3& v1, const VEC3& v2, f32 t) { return VEC3Lerp( pOut, &v1, &v2, t )… in VEC3Lerp() argument
Dmath_Matrix22.h39 NN_MATH_INLINE MTX22* MTX22MAdd(MTX22* pOut, f32 t, const MTX22* p1, const MTX22* p2);
199 inline MTX22* MTX22MAdd(MTX22* pOut, f32 t, const MTX22& m1, const MTX22& m2) { return MTX22MAdd(pO… in MTX22MAdd() argument
Dmath_Matrix44.h66 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);
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…
90 NN_FORCE_INLINE MTX44* MTX44Frustum(MTX44* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f);
98 NN_FORCE_INLINE MTX44* MTX44Ortho(MTX44* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f);
443 …self_type& SetupFrustum(f32 l, f32 r, f32 b, f32 t, f32 n, f32 f, PivotDirection pivot = PIVOT_NON…
445 return *MTX44FrustumPivot(this, l, r, b, t, n, f, pivot);
459 … self_type& SetupOrtho(f32 l, f32 r, f32 b, f32 t, f32 n, f32 f, PivotDirection pivot = PIVOT_NONE)
461 return *MTX44OrthoPivot(this, l, r, b, t, n, f, pivot);
[all …]
Dmath_Vector4.h39 NN_MATH_INLINE VEC4* VEC4Lerp(VEC4* pOut, const VEC4* p1, const VEC4* p2, f32 t);
141 self_type& Lerp(const VEC4& lhs, const VEC4& rhs, f32 t) in Lerp()
143 return *VEC4Lerp(this, &lhs, &rhs, t); in Lerp()
263 …VEC4Lerp(VEC4* pOut, const VEC4& v1, const VEC4& v2, f32 t) { return VEC4Lerp( pOut, &v1, &v2, t )… in VEC4Lerp() argument
/CTR-SDK-0.14.4/include/nn/math/ARMv6/
Dmath_Matrix33.h34 NN_MATH_INLINE MTX33* MTX33MAddC(MTX33* pOut, f32 t, const MTX33* p1, const MTX33* p2);
35 NN_MATH_INLINE MTX33* MTX33MAddC_FAST(MTX33* pOut, f32 t, const MTX33* p1, const MTX33* p2);
39 MTX33* MTX33MAddAsm(MTX33* pOut, f32 t, const MTX33* p1, const MTX33* p2);
40 MTX33* MTX33MAddAsm(MTX33* pOut, f32 t, const MTX33* p1, const MTX33* p2);
Dmath_Matrix44.h30 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);
/CTR-SDK-0.14.4/include/nn/math/inline/
Dmath_Quaternion.ipp229 @param[in] t 線形補間のパラメータ。0.0 であれば q1 が 1.0 であれば q2 が結果となります。
234 QUATLerp(QUAT* pOut, const QUAT* __restrict q1, const QUAT* __restrict q2, f32 t)
240 pOut->x = t * ( q2->x - q1->x ) + q1->x;
241 pOut->y = t * ( q2->y - q1->y ) + q1->y;
242 pOut->z = t * ( q2->z - q1->z ) + q1->z;
243 pOut->w = t * ( q2->w - q1->w ) + q1->w;
255 @param[in] t 球面線形補間のパラメータ。0.0 であれば q1 が 1.0 であれば q2 が結果となります。
260 QUATSlerp(QUAT* pOut, const QUAT* __restrict q1, const QUAT* __restrict q2, f32 t)
281 tp = ::std::sinf((1.0F - t) * theta) / sin_th;
282 tq *= ::std::sinf( t * theta ) / sin_th;
[all …]
Dmath_Matrix22.ipp100 @param[in] t かける数です。
107 MTX22MAdd(MTX22* pOut, f32 t, const MTX22* p1, const MTX22* p2)
113 pOut->f._00 = t * p1->f._00 + p2->f._00;
114 pOut->f._01 = t * p1->f._01 + p2->f._01;
116 pOut->f._10 = t * p1->f._10 + p2->f._10;
117 pOut->f._11 = t * p1->f._11 + p2->f._11;
Dmath_Vector4.ipp138 @param[in] t 線形補間のパラメータ。0.0 であれば p1 が 1.0 であれば p2 が結果となります。
143 VEC4Lerp(VEC4* pOut, const VEC4* __restrict p1, const VEC4* __restrict p2, f32 t)
145 // (1-t)*p1 + t*p2
146 pOut->x = p1->x + t * (p2->x - p1->x);
147 pOut->y = p1->y + t * (p2->y - p1->y);
148 pOut->z = p1->z + t * (p2->z - p1->z);
149 pOut->w = p1->w + t * (p2->w - p1->w);
Dmath_Matrix34.ipp208 @param[in] t ニアクリップの上辺です。
218 MTX34TextureProjectionFrustum(MTX34* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 scaleS, f32 scale…
220 NN_ASSERT(t != b);
233 f32 reverseHeight = 1.0f / (t - b);
236 mtx[1][2] = (((t+ b) * reverseHeight) * scaleT) - translateT;
296 @param[in] t ニアクリップの上辺です。
305 MTX34TextureProjectionOrtho(MTX34* pOut, f32 l, f32 r, f32 b, f32 t, f32 scaleS, f32 scaleT, f32 tr…
307 NN_ASSERT(t != b);
320 float reverseHeight = 1.0f / (t - b);
324 mtx[1][3] = ((-(t + b) * reverseHeight) * scaleT) + translateT;
Dmath_Matrix23.ipp349 @param[in] t 掛ける数です。
356 MTX23MAdd(MTX23* pOut, f32 t, const MTX23* p1, const MTX23* p2)
362 pOut->f._00 = t * p1->f._00 + p2->f._00;
363 pOut->f._01 = t * p1->f._01 + p2->f._01;
364 pOut->f._02 = t * p1->f._02 + p2->f._02;
366 pOut->f._10 = t * p1->f._10 + p2->f._10;
367 pOut->f._11 = t * p1->f._11 + p2->f._11;
368 pOut->f._12 = t * p1->f._12 + p2->f._12;
/CTR-SDK-0.14.4/sources/libraries/math/
Dmath_Geometry.cpp235 DistSqPoint3ToLine3(const VEC3* P, const LINE3* L, f32* t) in DistSqPoint3ToLine3() argument
250 if (t) in DistSqPoint3ToLine3()
251 *t = t_; in DistSqPoint3ToLine3()
257 DistSqPoint3ToRay3(const VEC3* P, const RAY3* R, f32* t) in DistSqPoint3ToRay3() argument
274 if (t) in DistSqPoint3ToRay3()
275 *t = t_; in DistSqPoint3ToRay3()
280 DistSqPoint3ToSegment3(const VEC3* P, const SEGMENT3* S, f32* t) in DistSqPoint3ToSegment3() argument
292 if (t) in DistSqPoint3ToSegment3()
293 *t = 0.f; in DistSqPoint3ToSegment3()
301 if (t) in DistSqPoint3ToSegment3()
[all …]
Dmath_Arithmetic.cpp514 f32 t = 1.f - s; in Bezier() local
515 f32 tt = t * t; in Bezier()
518 f32 a1 = tt * t; in Bezier()
520 f32 a3 = ss * t * 3.f; in Bezier()
/CTR-SDK-0.14.4/include/nn/math/ARMv6/inline/
Dmath_Matrix33.ipp349 @param[in] t 掛ける数。
356 MTX33MAddC(MTX33* pOut, f32 t, const MTX33* p1, const MTX33* p2)
358 pOut->f._00 = t * p1->f._00 + p2->f._00;
359 pOut->f._01 = t * p1->f._01 + p2->f._01;
360 pOut->f._02 = t * p1->f._02 + p2->f._02;
362 pOut->f._10 = t * p1->f._10 + p2->f._10;
363 pOut->f._11 = t * p1->f._11 + p2->f._11;
364 pOut->f._12 = t * p1->f._12 + p2->f._12;
366 pOut->f._20 = t * p1->f._20 + p2->f._20;
367 pOut->f._21 = t * p1->f._21 + p2->f._21;
[all …]
Dmath_Matrix34.ipp417 @param[in] t 掛ける数。
424 MTX34MAddC(MTX34* pOut, f32 t, const MTX34* p1, const MTX34* p2)
426 pOut->f._00 = t * p1->f._00 + p2->f._00;
427 pOut->f._01 = t * p1->f._01 + p2->f._01;
428 pOut->f._02 = t * p1->f._02 + p2->f._02;
429 pOut->f._03 = t * p1->f._03 + p2->f._03;
431 pOut->f._10 = t * p1->f._10 + p2->f._10;
432 pOut->f._11 = t * p1->f._11 + p2->f._11;
433 pOut->f._12 = t * p1->f._12 + p2->f._12;
434 pOut->f._13 = t * p1->f._13 + p2->f._13;
[all …]
Dmath_Matrix44.ipp315 @param[in] t ニアクリッピング面での視錐台上辺の Y 座標
322 MTX44FrustumC(MTX44* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f)
335 tmp = 1.0f / (t - b);
338 m[1][2] = (t + b) * tmp;
357 MTX44FrustumC_FAST(MTX44* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f)
366 f32 tmp2 = 1.0f / (t - b);
374 m12 = (t + b) * tmp2;
414 @param[in] t ニアクリッピング面での視錐台上辺の Y 座標
421 MTX44OrthoC(MTX44* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f)
434 tmp = 1.0f / (t - b);
[all …]
/CTR-SDK-0.14.4/sources/libraries/rdt/CTR/
Drdt_Transceiver.cpp203 Transceiver t; in serverSide() local
204 nn::Result result = t.Initialize(sock); in serverSide()
207 result = t.Pull(&s_recvSeg); in serverSide()
224 Transceiver t; in clientSide() local
225 nn::Result result = t.Initialize(sock); in clientSide()
228 t.Put(s_sendSeg); // セグメント送信 in clientSide()

12