#include <nitro/fx/fx_vec.h>
void VEC_Normalize(const VecFx32 * pSrc, VecFx32 * pDst);
| pSrc | The pointer to a vector. |
pDst |
The pointer to the normalized vector. |
None.
This function normalizes VecFx32 type vectors. The result is stored in *pDst.
*pSrc and pDst may be pointers to the same vector.
It uses the divider and square root calculator. Refer to 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.
94/27/2006 Added a note
01/19/2004 Initial version
CONFIDENTIAL