VEC_Fx16Mag

Syntax

#include <nitro/fx/fx_vec.h>

fx32 VEC_Fx16Mag(const VecFx16 * v);

Arguments

v Pointer to a vector.

Return Values

The magnitude of the vector.

Description

This function returns the magnitude of a VecFx16-type vector as an fx32 type. The Square Root Calculator is used internally. Refer to Square Root Calculator Usage Notes when using this function inside an interrupt.

See Also

VEC_Fx16Normalize

Revision History

2004/02/16 Initial version.


CONFIDENTIAL