njRotateViewZAbsolute Japanese
<-|INDEX|->
Rotates the view around the Z axis. (Absolute rotation)

FORMAT

#include <Ninja.h>

void njRotateViewZAbsolute(*v, ang)
NJS_VIEW *v
Angle ang

PARAMETERS

NJS_VIEW *v
view structure pointer
Angle ang
rotation angle (absolute value)

RETURN VALUE

None

FUNCTION


EXAMPLE

This example rotates the view located at (0, 0, 3000) and directed towarded (0, 0, -1) (into the screen) around the Z axis by 90 degrees without changing the view location or direction.
#define VIEW_APX 3000.f
#define VIEW_APY 0.f
#define VIEW_APZ 0.f
#define VIEW_AVX 0.f
#define VIEW_AVY 0.f
#define VIEW_AVZ -1.f
#define VIEW_AROLL 0

NJS_VIEW v;

v.apx = VIEW_APX;
v.apy = VIEW_APY;
v.apz = VIEW_APZ;
v.avx = VIEW_AVX;
v.avy = VIEW_AVY;
v.avz = VIEW_AVZ;
v.aroll = NJM_DEG_ANG(VIEW_AROLL);

njRotateViewZAbsolute(&v, NJM_DEG_ANG(90));
njSetView(&v);
njClearMatrix();

NOTES


RELATED TOPICS

njSetView()
njClearMatrix()
NJM_DEG_ANG()

njRotateViewZAbsolute
<-|INDEX|->

Copyright SEGA ENTERPRISES, LTD., 1997