Ninja Library - Matrix Function

njScalor2

Returns the square of the scalar of an arbitrary vector

FORMAT

Float njScalor2(*v)
NJS_VECTOR *v

PARAMETER

 *v  Arbitrary vector 

RETURN

Square of the vector size (scalar)

DESCRIPTION

Returns the square of the scalar of an arbitrary vector.

EXAMPLE

The following returns the square of the scalar of vector v(3, 3, 3).
NJS_VECTOR v;
Float scalor2;
v.x = 3.f;
v.y = 3.f;
v.z = 3.f;
scalor2 = njScalor2(&v)
% Result %
scalor2 = 27

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