slaVn -

SYNOPSYS

void slaVn(v, uv, vm)

PARAMETERS

float *v
float *uv
float *vm

DESCRIPTION


  Normalizes a 3-vector also giving the modulus.

  (single precision)

Given

     v       float[3]      vector

Returned

     uv      float[3]      unit vector in direction of v
     *vm     float         modulus of v

  If the modulus of v is zero, uv is set to zero as well.

  P.T.Wallace   Starlink   31 October 1993

SEE ALSO