vm_math  1.0.7
Normalize vectors

Functions

static T_fp vm_V3Math< T_fp >::unitize (T_fp v[])
 
static T_fp vm_V3Math< T_fp >::unitize (T_fp vu[], T_fp const vi[])
 

Detailed Description

Function Documentation

template<class T_fp >
T_fp vm_V3Math< T_fp >::unitize ( T_fp  v[])
inlinestatic

Normalize a vector v.

Returns
return original vector magnitude
Parameters
vvector to be normalized

Definition at line 282 of file vm_v3math.h.

Referenced by vm_V3Math< T_fp >::unitize().

template<class T_fp >
T_fp vm_V3Math< T_fp >::unitize ( T_fp  vu[],
T_fp const  vi[] 
)
inlinestatic

Normalize a vector vi returning the normalized value in vu.

Returns
return original magnitude of vi
Parameters
vivector to be normalized
vunormalized version of vi

Definition at line 296 of file vm_v3math.h.

References vm_VMath< T_fp, 3 >::copy(), and vm_V3Math< T_fp >::unitize().