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

FORMAT

#include <Ninja.h>

void njScale(*m, x, y, z)
NJS_MATRIX *m
Float x
Float y
Float z

PARAMETERS

NJS_MATRIX *m
calculation matrix
Float x
scaling ratio along the X axis
Float y
scaling ratio along the Y axis
Float z
scaling ratio along the Z axis

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;

njInitMatrix(stack, 10);
njInitView(&view);
njSetView(&view);
njClearMatrix();
njPushMatrix(NULL);
njScale(NULL, 0.5f, 1.f, 2.f);
njPopMatrix(1);

NOTES


RELATED TOPICS


njScale
<-|INDEX|->

Copyright SEGA ENTERPRISES, LTD., 1997