Functions

Tests for normality, orthogonality

Functions

static int vm_V3Math::is_unit_vector (T_fp const v[], T_fp const tol)
static int vm_V3Math::are_orthogonal (T_fp const v[], T_fp const other[], T_fp const tol)
static int vm_V3Math::are_orthonormal (T_fp const v[], T_fp const other[], T_fp const tol)

Function Documentation

template<class T_fp >
int vm_V3Math< T_fp >::are_orthogonal ( T_fp const   v[],
T_fp const   other[],
T_fp const   tol 
) [inline, static, inherited]

Test whether a v is within tolerance tol of orthogonality to other vector

Returns:
1 if v and other are orthogonal within tolerance tol, 0 otherwise.
Parameters:
v vector to be checked
other other vector
tol tolerance

Definition at line 311 of file vm_v3math.h.

References vm_V3Math< T_fp >::dot().

Referenced by vm_V3Math< T_fp >::are_orthonormal().

template<class T_fp >
int vm_V3Math< T_fp >::are_orthonormal ( T_fp const   v[],
T_fp const   other[],
T_fp const   tol 
) [inline, static, inherited]

Test whether v is within tolerance tol of orthonormality with other vector

Returns:
1 if v and other are orthonormal within tolerance tol, 0 otherwise.
Parameters:
v vector to be checked
other other vector
tol tolerance

Definition at line 320 of file vm_v3math.h.

References vm_V3Math< T_fp >::are_orthogonal(), and vm_V3Math< T_fp >::is_unit_vector().

template<class T_fp >
int vm_V3Math< T_fp >::is_unit_vector ( T_fp const   v[],
T_fp const   tol 
) [inline, static, inherited]

Test whether a vector is within tolerance tol of a unit vector

Returns:
1 if v is within tolerance tol of being a unit vector, 0 otherwise.
Parameters:
v vector to be checked
tol tolerance

Definition at line 304 of file vm_v3math.h.

References vm_V3Math< T_fp >::dot().

Referenced by vm_V3Math< T_fp >::are_orthonormal().