Home
last modified time | relevance | path

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

1234

/RvlSDK-3.2.2/build/demos/gxdemo/src/Simple/
Dsmp-toy-anim.c231 CurMask = TestPoint(curGrid, CurPos.x, CurPos.z); in AnimTick()
245 fullMask = TestPoint(curGrid, tp.x, tp.z); in AnimTick()
252 CurPos.x -= (CurPos.z - SLOPE_ZSTART) * SLOPE_SLOPE; in AnimTick()
261 nextVel.z = -curVel.z * WALLZ_BOUNCE; in AnimTick()
267 nextVel.z = curVel.z; in AnimTick()
272 if (curVel.z < 0.0F) nextVel.z = -curVel.z * OUT_CORNER_BOUNCE; in AnimTick()
277 if (curVel.z < 0.0F) nextVel.z = -curVel.z * OUT_CORNER_BOUNCE; in AnimTick()
282 if (curVel.z > 0.0F) nextVel.z = -curVel.z * OUT_CORNER_BOUNCE; in AnimTick()
287 if (curVel.z > 0.0F) nextVel.z = -curVel.z * OUT_CORNER_BOUNCE; in AnimTick()
295 nextVel.z = -curVel.z * IN_CORNER_BOUNCE; in AnimTick()
[all …]
Dsmp-toy-draw.c373 static void DrawBall( f32 x, f32 y, f32 z ) in DrawBall() argument
392 GXPosition3f32( x - BALL_SIZEX, y, z - BALL_SIZEZ ); in DrawBall()
394 GXPosition3f32( x + BALL_SIZEX, y, z - BALL_SIZEZ ); in DrawBall()
396 GXPosition3f32( x + BALL_SIZEX, y, z + BALL_SIZEZ ); in DrawBall()
398 GXPosition3f32( x - BALL_SIZEX, y, z + BALL_SIZEZ ); in DrawBall()
604 x = curpos.x - ((curpos.z - SLOPE_ZSTART) * SLOPE_SLOPE); in DrawTick()
605 DrawBall(x, 0.0F, curpos.z); in DrawTick()
609 DrawBall(curpos.x, 0.0F, curpos.z); in DrawTick()
Dsmp-onetri_dl.c217 f32 z; // Translation in z. in DrawTick() local
231 for(z = STRUT_LN; z > -10*STRUT_LN; z -= STRUT_LN) in DrawTick()
235 MTXRowCol(m, 2, 3) = z; in DrawTick()
Dsmp-onetri.c234 f32 z; // Translation in z. in DrawTick() local
248 for(z = STRUT_LN; z > -10*STRUT_LN; z -= STRUT_LN) in DrawTick()
252 MTXRowCol(m, 2, 3) = z; in DrawTick()
/RvlSDK-3.2.2/build/libraries/mtx/src/
Dquat.c88 r->z = p->z + q->z; in C_QUATAdd()
144 r->z = p->z - q->z; in C_QUATSubtract()
211 r->w = p->w*q->w - p->x*q->x - p->y*q->y - p->z*q->z; in C_QUATMultiply()
212 r->x = p->w*q->x + p->x*q->w + p->y*q->z - p->z*q->y; in C_QUATMultiply()
213 r->y = p->w*q->y + p->y*q->w + p->z*q->x - p->x*q->z; in C_QUATMultiply()
214 r->z = p->w*q->z + p->z*q->w + p->x*q->y - p->y*q->x; in C_QUATMultiply()
316 r->z = q->z * scale; in C_QUATScale()
365 return (q->x*p->x + q->y*p->y + q->z*p->z + q->w*p->w); in C_QUATDotProduct()
415 mag = (src->x * src->x) + (src->y * src->y) + (src->z * src->z) + (src->w * src->w); in C_QUATNormalize()
423 unit->z = src->z * mag; in C_QUATNormalize()
[all …]
Dvec.c121 ab->z = a->z + b->z; in C_VECAdd()
190 a_b->z = a->z - b->z; in C_VECSubtract()
259 dst->z = src->z * scale; in C_VECScale()
325 mag = (src->x * src->x) + (src->y * src->y) + (src->z * src->z); in C_VECNormalize()
333 unit->z = src->z * mag; in C_VECNormalize()
413 sqmag = (v->x * v->x) + (v->y * v->y) + (v->z * v->z); in C_VECSquareMag()
549 dot = (a->x * b->x) + (a->y * b->y) + (a->z * b->z); in C_VECDotProduct()
613 vTmp.x = ( a->y * b->z ) - ( a->z * b->y ); in C_VECCrossProduct()
614 vTmp.y = ( a->z * b->x ) - ( a->x * b->z ); in C_VECCrossProduct()
615 vTmp.z = ( a->x * b->y ) - ( a->y * b->x ); in C_VECCrossProduct()
[all …]
Dmtxvec.c77 vTmp.x = m[0][0]*src->x + m[0][1]*src->y + m[0][2]*src->z + m[0][3]; in C_MTXMultVec()
78 vTmp.y = m[1][0]*src->x + m[1][1]*src->y + m[1][2]*src->z + m[1][3]; in C_MTXMultVec()
79 vTmp.z = m[2][0]*src->x + m[2][1]*src->y + m[2][2]*src->z + m[2][3]; in C_MTXMultVec()
84 dst->z = vTmp.z; in C_MTXMultVec()
182 vTmp.x = m[0][0]*srcBase->x + m[0][1]*srcBase->y + m[0][2]*srcBase->z + m[0][3]; in C_MTXMultVecArray()
183 vTmp.y = m[1][0]*srcBase->x + m[1][1]*srcBase->y + m[1][2]*srcBase->z + m[1][3]; in C_MTXMultVecArray()
184 vTmp.z = m[2][0]*srcBase->x + m[2][1]*srcBase->y + m[2][2]*srcBase->z + m[2][3]; in C_MTXMultVecArray()
189 dstBase->z = vTmp.z; in C_MTXMultVecArray()
324 vTmp.x = m[0][0]*src->x + m[0][1]*src->y + m[0][2]*src->z; in C_MTXMultVecSR()
325 vTmp.y = m[1][0]*src->x + m[1][1]*src->y + m[1][2]*src->z; in C_MTXMultVecSR()
[all …]
Dmtx44vec.c81 vTmp.x = m[0][0]*src->x + m[0][1]*src->y + m[0][2]*src->z + m[0][3]; in C_MTX44MultVec()
82 vTmp.y = m[1][0]*src->x + m[1][1]*src->y + m[1][2]*src->z + m[1][3]; in C_MTX44MultVec()
83 vTmp.z = m[2][0]*src->x + m[2][1]*src->y + m[2][2]*src->z + m[2][3]; in C_MTX44MultVec()
84 w = m[3][0]*src->x + m[3][1]*src->y + m[3][2]*src->z + m[3][3]; in C_MTX44MultVec()
90 dst->z = vTmp.z * w; in C_MTX44MultVec()
170 vTmp.x = m[0][0]*srcBase->x + m[0][1]*srcBase->y + m[0][2]*srcBase->z + m[0][3]; in C_MTX44MultVecArray()
171 vTmp.y = m[1][0]*srcBase->x + m[1][1]*srcBase->y + m[1][2]*srcBase->z + m[1][3]; in C_MTX44MultVecArray()
172 vTmp.z = m[2][0]*srcBase->x + m[2][1]*srcBase->y + m[2][2]*srcBase->z + m[2][3]; in C_MTX44MultVecArray()
173 w = m[3][0]*srcBase->x + m[3][1]*srcBase->y + m[3][2]*srcBase->z + m[3][3]; in C_MTX44MultVecArray()
179 dstBase->z = vTmp.z * w; in C_MTX44MultVecArray()
[all …]
/RvlSDK-3.2.2/build/demos/kpaddemo/src/
Dswing.c247 dir_nrm.z = 0.0f ; in init_sample()
251 last_acc.x = last_acc.y = last_acc.z = in init_sample()
252 acc_vec.x = acc_vec.y = acc_vec.z = in init_sample()
253 dir_vec.x = dir_vec.y = dir_vec.z = in init_sample()
290 if ( new_acc.z < -ACC_MAX || new_acc.z > ACC_MAX ) { in work_sample()
291 new_acc.z = ( acc_vec.z *= ACC_DAMP ) + last_acc.z ; in work_sample()
293 acc_vec.z = new_acc.z - last_acc.z ; in work_sample()
302 dir_vec.z *= DIR_VEC_DAMP ; in work_sample()
305 f1 = acc_vec.z ; in work_sample()
312 dir_vec.z = 0.0f ; in work_sample()
[all …]
/RvlSDK-3.2.2/build/demos/gxdemo/src/PixelProc/
Dpix-z-comp.c190 ZMode* z = s->zmode; in SceneDraw() local
201 myDrawModel( (s32)v->width, (s32)v->height, z ); in SceneDraw()
223 ZMode* z = s->zmode; in SceneDrawInfo() local
239 if ( z->title ) in SceneDrawInfo()
241 DEMOPuts( 15, 12, 0, z->title ); in SceneDrawInfo()
248 if ( z->func == myZComp[lid].func ) break; in SceneDrawInfo()
277 ZMode* z; in SceneControl() local
303 z = s->zmode; in SceneControl()
304 myScene[0].zmode = z; in SceneControl()
316 if ( z->func == myZComp[lid].func ) break; in SceneControl()
[all …]
Dcmn-model.c148 f32 x, y, z, dir; member
197 p->z += dz * p->dir; in cmModel1_Anim()
198 dist = (p->x * p->x + p->z * p->z); in cmModel1_Anim()
206 p->z += p->dir; in cmModel1_Anim()
208 if ( p->z > c->zfar || p->z < c->zfar / 3 ) in cmModel1_Anim()
215 p->z += p->dir; in cmModel1_Anim()
218 if ( p->z > c->zfar || p->z < c->znear ) in cmModel1_Anim()
227 p->z = ( p->z > c->zfar ) ? c->znear : c->zfar; in cmModel1_Anim()
296 MTXTrans( mmtx, obj1[i].x-12.0f, obj1[i].y-4.0f, obj1[i].z); in cmModel1_Draw()
303 DEMOPrintf( 0, 0, 0, "%3d", (s32)obj1[i].z ); in cmModel1_Draw()
[all …]
Dpix-sub.c255 DefaultBallPos[i].z = 0.0F; in DrawInit()
547 MTXTransApply(ms, mt, sc->ballPos[i].x, sc->ballPos[i].y, sc->ballPos[i].z); in DrawBalls()
578 zscale = (sc->ballPos[i].z + 400.0F) / 2.0F; in DrawShadowVol()
579 zcenter = (sc->ballPos[i].z - 400.0F) / 2.0F; in DrawShadowVol()
601 s8 x, y, z; in DrawFloor() local
612 z = 0; in DrawFloor()
618 z = (s8)(NUM_GRIDS - x - y); in DrawFloor()
621 GXPosition3s8(x, y, z); in DrawFloor()
624 GXPosition3s8(x, (s8)(y+1), z); in DrawFloor()
627 GXPosition3s8((s8)(x+1), (s8)(y+1), z); in DrawFloor()
[all …]
/RvlSDK-3.2.2/include/revolution/gx/
DGXEmVert.h47 void EmGXParam3f32( f32 x, f32 y, f32 z );
48 void EmGXParam4f32( f32 x, f32 y, f32 z, f32 w );
53 void EmGXPosition3f32 ( float x, float y, float z );
54 void EmGXPosition3u16 ( u16 x, u16 y, u16 z );
55 void EmGXPosition3s16 ( s16 x, s16 y, s16 z );
56 void EmGXPosition3u8 ( u8 x, u8 y, u8 z );
57 void EmGXPosition3s8 ( s8 x, s8 y, s8 z );
67 void EmGXNormal3f32 ( f32 x, f32 y, f32 z );
68 void EmGXNormal3s16 ( s16 x, s16 y, s16 z );
69 void EmGXNormal3s8 ( s8 x, s8 y, s8 z );
DGXVert.h195 void func(const ts x, const ts y, const ts z);
199 void func(const ts x, const ts y, const ts z, const ts w);
238 static inline void func(const ts x, const ts y, const ts z) \
245 *((td *) __EmBuffPtr) = (td) z; \
248 Em##func(x, y, z); \
255 static inline void func(const ts x, const ts y, const ts z, const ts w) \
262 *((td *) __EmBuffPtr) = (td) z; \
267 Em##func(x, y, z, w); \
298 static inline void func(const ts x, const ts y, const ts z) \
302 GXWGFifo.td = (td) z; \
[all …]
/RvlSDK-3.2.2/build/demos/gxdemo/src/Indirect/
Dind-pseudo-3d.c45 f32 x, y, z; member
75 void updateScene(Mtx cam, f32 r1, f32 r2, f32 x, f32 y, f32 z, f32 mag);
123 height[r][c].z = h; in adjustPoint()
145 height[r][c].z = (f32) 0; in createHeightField()
158 adjustPoint(height, r, 0, height[r-1][0].z); in createHeightField()
162 adjustPoint(height, 0, c, height[0][c-1].z); in createHeightField()
171 h = (height[r-1][c].z + height[r][c-1].z)/2.0f; in createHeightField()
184 dx = height[r][c+1].z - height[r][c].z; in createHeightField()
188 dx = height[r][c+1].z - height[r][c-1].z; in createHeightField()
192 dx = height[r][c].z - height[r][c-1].z; in createHeightField()
[all …]
Dind-bump-xyz.c72 f32 x, y, z; member
134 void updateDonut(Mtx cam, f32 r1, f32 r2, f32 x, f32 y, f32 z);
159 cube[0][i].z = 0.5f; in createCube()
162 cube[1][i].z = -h; in createCube()
165 cube[2][i].z = -0.5f; in createCube()
168 cube[3][i].z = h; in createCube()
171 cube[4][i].z = -v; in createCube()
174 cube[5][i].z = v; in createCube()
230 GXPosition3f32(d->x, d->y, d->z); in sendVertex()
360 GXInitSpecularDir(&light, lDir.x, lDir.y, lDir.z); in setLight()
[all …]
/RvlSDK-3.2.2/build/libraries/demo/src/
DDEMOPuts.c336 void DEMOPuts( s16 x, s16 y, s16 z, char* string ) in DEMOPuts() argument
371 GXPosition3s16( (s16)(i*8+x ), (s16)(y ), z ); in DEMOPuts()
373 GXPosition3s16( (s16)(i*8+x+8), (s16)(y ), z ); in DEMOPuts()
375 GXPosition3s16( (s16)(i*8+x+8), (s16)(y+8 ), z ); in DEMOPuts()
377 GXPosition3s16( (s16)(i*8+x ), (s16)(y+8 ), z ); in DEMOPuts()
402 void DEMOPrintf( s16 x, s16 y, s16 z, char* fmt, ... ) in DEMOPrintf() argument
416 DEMOPuts( x, y, z, buf ); in DEMOPrintf()
530 static void DrawFontChar(int x, int y, int z, int xChar, int yChar) in DrawFontChar() argument
543 GXPosition3s16(posLeft , posTop , (s16) z); in DrawFontChar()
546 GXPosition3s16(posRight, posTop , (s16) z); in DrawFontChar()
[all …]
/RvlSDK-3.2.2/build/libraries/wpad/src/
DWPADClamp.c590 f32 z = (f32)((f32)*pz / (f32)unit.z); in __ClampCube() local
605 if (z < 0.0f) in __ClampCube()
608 z = -z; in __ClampCube()
619 if (z > max) in __ClampCube()
621 z = max; in __ClampCube()
626 z *= signZ; in __ClampCube()
630 *pz = (s16)(z * (f32)unit.z); in __ClampCube()
650 f32 z = (f32)((f32)*pz / (f32)unit.z); in __ClampSphere() local
654 squared = x*x + y*y + z*z; in __ClampSphere()
660 z = z * max / length; in __ClampSphere()
[all …]
/RvlSDK-3.2.2/build/demos/gxdemo/src/TexGen/
Dtg-shadow.c469 s8 x, y, z; in DrawFloor() local
480 z = 0; in DrawFloor()
486 z = (s8)(NUM_GRIDS - x - y); in DrawFloor()
489 GXPosition3s8(x, y, z); in DrawFloor()
492 GXPosition3s8((s8)(x+1), y, z); in DrawFloor()
495 GXPosition3s8((s8)(x+1), (s8)(y+1), z); in DrawFloor()
498 GXPosition3s8(x, (s8)(y+1), z); in DrawFloor()
503 GXPosition3s8((s8)(x+1), y, z); in DrawFloor()
506 GXPosition3s8((s8)(x+1), (s8)(y+1), z); in DrawFloor()
509 GXPosition3s8((s8)(x+1), (s8)(y+1), (s8)(z-1)); in DrawFloor()
[all …]
Dtg-emboss.c245 myLight.pos.z = + myLight.dist * 1.0f / M_SQRT3; in myInitModel()
345 axis.z = 0.5f; in myAnimeModel()
355 if ( pad->dirs & DEMO_STICK_UP ) myLight.pos.z += 2.0f; in myAnimeModel()
356 if ( pad->dirs & DEMO_STICK_DOWN ) myLight.pos.z -= 2.0f; in myAnimeModel()
358 r2 = myLight.pos.x * myLight.pos.x + myLight.pos.z * myLight.pos.z; in myAnimeModel()
365 myLight.pos.z *= scale; in myAnimeModel()
391 GXInitLightPos ( &myLight.obj, lpos.x, lpos.y, lpos.z ); in myDrawModel()
551 GXPosition3f32( myLight.pos.x, myLight.pos.y, myLight.pos.z ); in myDrawModel()
554 GXPosition3f32( myLight.pos.x+2.0f, myLight.pos.y, myLight.pos.z+2.0f ); in myDrawModel()
555 GXPosition3f32( myLight.pos.x+2.0f, myLight.pos.y, myLight.pos.z-2.0f ); in myDrawModel()
[all …]
/RvlSDK-3.2.2/build/demos/axdemo/src/
Daxart3ddemo.c749 Camera.translate.z += digAYBtnScale * Camera.zAxis.z; in AnimTick()
782 Camera.translate.z += translate * Camera.xAxis.z; in AnimTick()
790 Camera.translate.z += translate * Camera.yAxis.z; in AnimTick()
798 MTXTrans( ModelMtx, BallPosition.x, BallPosition.y, BallPosition.z ); in AnimTick()
845 MTXRowCol(camera->viewMtx,0,2) = camera->xAxis.z; in CameraUpdate()
850 MTXRowCol(camera->viewMtx,1,2) = camera->yAxis.z; in CameraUpdate()
855 MTXRowCol(camera->viewMtx,2,2) = camera->zAxis.z; in CameraUpdate()
858 MTXTrans(transMtx, -camera->translate.x, -camera->translate.y, -camera->translate.z); in CameraUpdate()
872 hAngle = -atan2f( ballPosInCamera.x, ballPosInCamera.z ) + 3.14f; in CameraUpdate()
874 hAngle = -atan2f( ballPosInCamera.x, ballPosInCamera.z ) - 3.14f; in CameraUpdate()
[all …]
/RvlSDK-3.2.2/include/revolution/mtx/
DGeoTypes.h57 f32 x, y, z; member
69 s16 z; member
79 f32 x, y, z, w; member
/RvlSDK-3.2.2/build/demos/fntdemo/src/
Dfntdemo1.c114 f32 x, f32 y, f32 z, in DrawChar() argument
147 GXPosition3f32(posLeft, posTop, z); in DrawChar()
150 GXPosition3f32(posRight, posTop, z); in DrawChar()
153 GXPosition3f32(posRight, posBottom, z); in DrawChar()
156 GXPosition3f32(posLeft, posBottom, z); in DrawChar()
179 f32 x, f32 y, f32 z, in DrawString() argument
195 DrawChar(x + margin, y, z, &tex, scaleX, scaleY, lastImage); in DrawString()
244 f32 x, f32 y, f32 z ) in DrawSample() argument
262 drawW = DrawString(font, x, y, z, str0, scaleX, scaleY, 0.F, &lastImage); in DrawSample()
264 drawW = DrawString(font, x, y, z, str1, scaleX, scaleY, 0.F, &lastImage); in DrawSample()
[all …]
/RvlSDK-3.2.2/include/demo/
DDEMOPuts.h66 extern int DEMORFPuts ( s16 x, s16 y, s16 z, char* string );
67 extern int DEMORFPutsEx ( s16 x, s16 y, s16 z, char* string, s16 maxWidth, int …
68 extern int DEMORFPrintf ( s16 x, s16 y, s16 z, char* fmt, ... );
/RvlSDK-3.2.2/build/demos/gxdemo/src/Geometry/
Dgeo-particle.c360 vVertical.z = v[2][1]; in CameraUpdate()
364 vHorizontal.z = v[2][0]; in CameraUpdate()
685 vDest.z = nY * 5.0F; in TextureParticleEmit()
695 prt->vVel.z = vDest.z * rRT; in TextureParticleEmit()
699 prt->vPos.z = 0.0F; in TextureParticleEmit()
735 prt->vVel.z = (float)(2 * rndf())-1; in ParticleEmit()
737 (prt->vVel.z * prt->vVel.z); in ParticleEmit()
742 prt->vVel.z *= 0.5; in ParticleEmit()
887 GXPosition3f32(vPoint->x, vPoint->y, vPoint->z); in SendParticlePoint()
897 vPoint1->z - vDelta->z * 2); in SendParticleLine()
[all …]

1234