Lines Matching refs:theta

59     s32         theta;  member
212 sc->lightCtrl[i].theta = 0; in DrawInit()
339 sc->lightCtrl[cur].theta += ( DEMOPadGetStickX(0) / 24 ); in AnimTick()
340 if ( sc->lightCtrl[cur].theta < -90 ) in AnimTick()
341 sc->lightCtrl[cur].theta = -90; in AnimTick()
342 if ( sc->lightCtrl[cur].theta > 90 ) in AnimTick()
343 sc->lightCtrl[cur].theta = 90; in AnimTick()
354 sc->lightCtrl[cur].theta = 0; in AnimTick()
387 f32 theta, phi, s; in CreateTessPanel() local
410 theta = (f32)ix * 2.0F * PI / 15.0F; in CreateTessPanel()
411 s = sqrtf( 1 + cosf(theta) * cosf(theta) ); in CreateTessPanel()
412 pz = sinf(theta); in CreateTessPanel()
413 nx = - cosf(theta) / s; in CreateTessPanel()
419 theta = (f32)ix * 4.0F * PI / 15.0F; in CreateTessPanel()
420 s = sqrtf( 1.0F + cosf(theta) * cosf(theta) ); in CreateTessPanel()
421 pz = sinf(theta); in CreateTessPanel()
422 nx = - cosf(theta) / s; in CreateTessPanel()
428 theta = (f32)ix * 4.0F * PI / 15.0F; in CreateTessPanel()
430 s = sqrtf( 1.0F + cosf(theta) * cosf(theta) * sinf(phi) * sinf(phi) ) in CreateTessPanel()
431 * sqrtf( 1.0F + sinf(theta) * sinf(theta) * cosf(phi) * cosf(phi) ); in CreateTessPanel()
432 pz = cosf(theta) * cosf(phi); in CreateTessPanel()
433 nx = sinf(theta) * cosf(phi) / s; in CreateTessPanel()
434 ny = cosf(theta) * sinf(phi) / s; in CreateTessPanel()
439 theta = (f32)ix / 15.0F - 0.5F; in CreateTessPanel()
440 pz = 4.0F * theta * theta; in CreateTessPanel()
441 s = sqrtf( 1.0F + 64.0F * theta * theta ); in CreateTessPanel()
442 nx = - (f32)theta * 8.0F / s; in CreateTessPanel()
448 theta = (f32)iy / 15.0F - 0.5F; in CreateTessPanel()
449 pz = 0.25F - 4.0F * theta * theta; in CreateTessPanel()
450 s = sqrtf( 1.0F + 64.0F * theta * theta ); in CreateTessPanel()
452 ny = (f32)theta * 8.0F / s; in CreateTessPanel()
602 f32 theta, phi, dx, dy, dz; in SetLight() local
610 theta = (f32)lightCtrl[i].theta * PI / 180.0F; in SetLight()
612 dx = cosf(phi) * sinf(theta); in SetLight()
614 dz = - cosf(phi) * cosf(theta); in SetLight()