vm_math  1.0.7
Tests for normality, orthogonality

Functions

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

Detailed Description

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 
)
inlinestatic

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
vvector to be checked
otherother vector
toltolerance

Definition at line 311 of file vm_v3math.h.

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

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
vvector to be checked
otherother vector
toltolerance

Definition at line 320 of file vm_v3math.h.

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

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
vvector to be checked
toltolerance

Definition at line 304 of file vm_v3math.h.