Home
last modified time | relevance | path

Searched refs:vx (Results 1 – 4 of 4) sorted by relevance

/RvlSDK-2.1/build/demos/kpaddemo/src/
Dgraphic.c154 f32 vx,vy, f ; in draw_arrow() local
157 vx = x2 - x1 ; in draw_arrow()
159 f = sqrtf( vx*vx + vy*vy ) ; in draw_arrow()
161 vx = vy = 0.0f ; in draw_arrow()
164 vx *= f ; in draw_arrow()
168 draw_line( x2,y2, x2-vx-vx-vy,y2-vy-vy+vx, clr, width ) ; in draw_arrow()
169 draw_line( x2,y2, x2-vx-vx+vy,y2-vy-vy-vx, clr, width ) ; in draw_arrow()
178 f32 vx,vy, f ; in draw_dashed_arrow() local
181 vx = x2 - x1 ; in draw_dashed_arrow()
183 f = sqrtf( vx*vx + vy*vy ) ; in draw_dashed_arrow()
[all …]
Dsample.c129 s32 vx,vy, wx,wy, fy ; in move_cursor() local
137 if ( CMD_LEFT ) vx = -1 ; in move_cursor()
138 else if ( CMD_RIGHT ) vx = 1 ; in move_cursor()
139 else vx = 0 ; in move_cursor()
157 if ( wx * vx + fy <= 0 ) continue ; in move_cursor()
/RvlSDK-2.1/build/libraries/kpad/src/
DKPAD.c334 f32 f1, vx,vy ; in KPADCalibrateDPD() local
343 vx = kp->hard_acc.x ; in KPADCalibrateDPD()
345 f1 = sqrtf( vx * vx + vy * vy ) ; in KPADCalibrateDPD()
347 kp->accXY_nrm_hori.x = vx / f1 ; in KPADCalibrateDPD()
380 vx = kp->kobj_regular[KPAD_USE_OBJECTS-1].center.x - kp->kobj_regular[0].center.x ; in KPADCalibrateDPD()
382 f1 = 1.0f / sqrtf( vx * vx + vy * vy ) ; // Should not become zero in KPADCalibrateDPD()
383 kp->sec_nrm_hori.x = vx * f1 ; in KPADCalibrateDPD()
644 f32 f1, vx,vy, ax,ay ; in calc_acc_horizon() local
660 vx = kp->accXY_nrm_hori.x * ax + kp->accXY_nrm_hori.y * ay ; in calc_acc_horizon()
664 ax = ( vx - kp->acc_horizon.x ) * f1 + kp->acc_horizon.x ; in calc_acc_horizon()
[all …]
/RvlSDK-2.1/build/demos/gxdemo/src/Lighting/
Dlit-prelit.c74 f32 vx; member
339 sc->fakeLight[i].xpos += sc->fakeLight[i].vx; in AnimTick()
344 sc->fakeLight[i].vx = - sc->fakeLight[i].vx; in AnimTick()