Lines Matching refs:unit
44 static void __ClampCube ( s16 *px, s16 *py, s16 *pz, WPADAcc unit, f32 max );
45 static void __ClampSphere ( s16 *px, s16 *py, s16 *pz, WPADAcc unit, f32 max );
586 static void __ClampCube(s16 *px, s16 *py, s16 *pz, WPADAcc unit, f32 max) in __ClampCube() argument
588 f32 x = (f32)((f32)*px / (f32)unit.x); in __ClampCube()
589 f32 y = (f32)((f32)*py / (f32)unit.y); in __ClampCube()
590 f32 z = (f32)((f32)*pz / (f32)unit.z); in __ClampCube()
628 *px = (s16)(x * (f32)unit.x); in __ClampCube()
629 *py = (s16)(y * (f32)unit.y); in __ClampCube()
630 *pz = (s16)(z * (f32)unit.z); in __ClampCube()
646 static void __ClampSphere(s16 *px, s16 *py, s16 *pz, WPADAcc unit, f32 max) in __ClampSphere() argument
648 f32 x = (f32)((f32)*px / (f32)unit.x); in __ClampSphere()
649 f32 y = (f32)((f32)*py / (f32)unit.y); in __ClampSphere()
650 f32 z = (f32)((f32)*pz / (f32)unit.z); in __ClampSphere()
663 *px = (s16)(x * (f32)unit.x); in __ClampSphere()
664 *py = (s16)(y * (f32)unit.y); in __ClampSphere()
665 *pz = (s16)(z * (f32)unit.z); in __ClampSphere()