njScaleV Japanese
<-|INDEX|->
Scales a matrix.

FORMAT

#include <Ninja.h>

void njScaleV(*m, *v)
NJS_MATRIX *m
NJS_VECTOR *v

PARAMETERS

NJS_MATRIX *m
pointer to the calculation matrix
NJS_VECTOR *v
scaling ratio along the X, Y, and Z axes

RETURN VALUE

None

FUNCTION


EXAMPLE

The following scales the current matrix by 0.5 along the X axis, 1 along the Y axis, and 2 along the Z axis.
NJS_MATRIX stack[10];
NJS_VIEW view;
NJS_VECTOR v;

v.x = 0.5f;
v.y = 1.f;
v.z = 2.f;
njInitMatrix(stack, 10);
njInitView(&view);
njSetView(&view);
njClearMatrix();
njPushMatrix(NULL);
njScaleV(NULL, &v);
njPopMatrix(1);

NOTES


RELATED TOPICS


njScaleV
<-|INDEX|->

Copyright SEGA ENTERPRISES, LTD., 1997