Ninja Library - Matrix Function

njUnitRotPortion

Transforms rotation elements of specified matrix into units

FORMAT

njUnitRotPortion( *m )
NJS_MATRIX *m

PARAMETER

 *m  Matrix to be used as unit 

RETURN

None

DESCRIPTION

Transforms the rotation elements of a specified matrix into units. When argument m is NULL, the current matrix is used for processing.

EXAMPLE

The following transforms rotation elements of matrix m into units.
NJS_MATRIX m = {1.f, 1.f, 1.f, 1.f,
        1.f, 1.f, 1.f, 1.f,
        1.f, 1.f, 1.f, 1.f,
        1.f, 1.f, 1.f, 1.f};
  njUnitRotPortion(&m);
% Result %
m = {1.f, 0.f, 0.f, 1.f,
   0.f, 1.f, 0.f, 1.f,
   0.f, 0.f, 1.f, 1.f,
   1.f, 1.f, 1.f, 1.f};

njUnitRotPortion
COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999