njTranslateViewVAbsolute Japanese
<-|INDEX|->
Moves the view location along the X, Y, and Z axes. (Absolute move)

FORMAT

#include <Ninja.h>

void njTranslateViewVAbsolute( *v , *p )
NJS_VIEW *v
NJS_POINT3 *p

PARAMETERS

NJS_VIEW *v
view structure pointer
NJS_POINT3 *p
amount of movement along each of the X, Y, and Z axes (absolute values)

RETURN VALUE

None

FUNCTION


EXAMPLE

This example moves the view located at (0, 0, 3000) and directed toward (0, 0, -1) (into the screen) along the X, Y, and Z axes by 100, 200, and 300, respectively, without changing the view direction.
NJS_VIEW v;
NJS_POINT3 p;

#define VIEW_APX 0.f
#define VIEW_APY 0.f
#define VIEW_APZ 3000.f
#define VIEW_AVX 0.f
#define VIEW_AVY 0.f
#define VIEW_AVZ -1.f
#define VIEW_AROLL 0

v.apx = VIEW_APX;
v.apy = VIEW_APY;
v.apz = VIEW_PZ;
v.avx = VIEW_AVX;
v.avy = VIEW_AVY;
v.avz = VIEW_VZ;
v.aroll = NJM_DEG_ANG(VIEW_AROLL);
p.x = 100.f;
p.y = 200.f;
p.z = 300.f;

njTranslateViewVAbsolute(&v, &p);
njSetView(&v);
njClearMatrix();

NOTES


RELATED TOPICS

njInitView()
njSetView()
njClearMatrix()

njTranslateViewVAbsolute
<-|INDEX|->

Copyright SEGA ENTERPRISES, LTD., 1997