

#include <nitro/fx/fx_vec.h>
void VEC_Normalize(const VecFx32 * pSrc, VecFx32 * pDst);
pSrc |
Pointer to a vector. |
pDst |
Pointer to the normalized vector. |
None.
Normalizes VecFx32-type vectors. The result is stored in *pDst.*pSrc and *pDst can be pointers to the same vector.
The function uses the divider and square root calculator. See Divider Usage Notes when using this function inside an interrupt.
Note: Correct calculation results cannot be obtained when (pSrc.x×pSrc.x)+(pSrc.y×pSrc.y)+(pSrc.z×pSrc.z) > 0x100000000000000.
2006/04/27 Added a note.
2004/01/19 Initial version.
CONFIDENTIAL