Functions | |
static T_fp | vm_V3Math::unitize (T_fp v[]) |
static T_fp | vm_V3Math::unitize (T_fp vu[], T_fp const vi[]) |
T_fp vm_V3Math< T_fp >::unitize | ( | T_fp | v[] | ) | [inline, static, inherited] |
Normalize a vector v.
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().
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.
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().