##### Ninja Library - Matrix Function

# njScalor

Returns the scalar of an arbitrary vector

### FORMAT

`

  Float njScalor(*v)
  NJS_VECTOR *v

`

### PARAMETER

  `*v` | Arbitrary vector

### RETURN

  Size of vector (scalar)

### DESCRIPTION

  Returns the scalar of an arbitrary vector.

### EXAMPLE

      The following returns the size of vector v(3, 3, 3).
      NJS_VECTOR v;
      Float scalor;
      v.x = 3.f;
      v.y = 3.f;
      v.z = 3.f;
      scalor = njScalor(&v)
      % Result %
      scalor = 5.196152

njScalor

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999