Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members

Normalize vectors


Functions

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

Function Documentation

template<class T_fp>
T_fp vm_V3Math< T_fp >::unitize T_fp  vu[],
T_fp const   vi[]
[inline, static, inherited]
 

Normalize a vector vi returning the normalized value in vu.

Returns:
return original magnitude of vi
Parameters:
vi vector to be normalized
vu normalized 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().

template<class T_fp>
T_fp vm_V3Math< T_fp >::unitize T_fp  v[]  )  [inline, static, inherited]
 

Normalize a vector v.

Returns:
return original vector magnitude
Parameters:
v vector to be normalized

Definition at line 282 of file vm_v3math.h.

References vm_VMath< T_fp, 3 >::div_eq(), and vm_V3Math< T_fp >::dot().

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


Generated on Wed Apr 19 17:38:32 2006 for vm_math by  doxygen 1.4.2