njTranslateView Japanese
<-|INDEX|->
Translates the view along the X, Y, and Z axes (absolute translation).

FORMAT

#include <Ninja.h>

void njTranslateView( *v , x , y , z )
NJS_VIEW *v
Float x
Float y
Float z

PARAMETERS

NJS_VIEW *v
view structure pointer
Float x
amount of translation along the X axis (absolute amount of translation)
Float y
amount of translation along the Y axis (absolute amount of translation)
Float z
amount of translation along the Z axis (absolute amount of translation)

RETURN VALUE

None

FUNCTION


EXAMPLE

The following translates the view located at (0, 0, 0) with orientation (0, 0, -1) (screen rear) by 100 along the X axis, 200 along the Y axis, and 300 along the Z axis.
NJS_VIEW v;

njInitView(&v);
njSetView(&v);
njTranslateView(&v, 100.f, 200.f, 300.f);
njClearMatrix();

NOTES


RELATED TOPICS

njInitView()
njSetView()
njClearMatrix()

njTranslateView
<-|INDEX|->

Copyright SEGA ENTERPRISES, LTD., 1997