VEC_Distance

Syntax

#include <nitro/fx/fx_vec.h>

fx32 VEC_Distance(const VecFx32* v1, const VecFx32* v2);

Arguments

v1 Pointer to an VecFx32-type vector.
v2   Pointer to an VecFx32-type vector.

Return Values

Distance between two vectors.

Description

This function returns the distance between two VecFx32-type vectors as an fx32 type. It uses the Square Root Calculator. Refer to Square Root Calculator Usage Notes when using this function inside an interrupt.

See Also

VEC_Mag

Revision History

2004/02/16 Initial version.


CONFIDENTIAL