Functions

Dot and Cross products.

Functions

static T_fp vm_V3Math::dot (T_fp const v1[], T_fp const v2[])
static void vm_V3Math::cross (T_fp prod[], T_fp const v1[], T_fp const v2[])

Function Documentation

template<class T_fp >
void vm_V3Math< T_fp >::cross ( T_fp  prod[],
T_fp const   v1[],
T_fp const   v2[] 
) [inline, static, inherited]

Cross (wedge) product of two vectors

Returns:
cross (wedge) product of v1 with v2.
Parameters:
prod cross (wedge) product of v1 with v2.
v1 1st vector
v2 2nd vector

Definition at line 272 of file vm_v3math.h.

template<class T_fp >
T_fp vm_V3Math< T_fp >::dot ( T_fp const   v1[],
T_fp const   v2[] 
) [inline, static, inherited]

Dot product of two vectors

Returns:
dot (scalar) product of v1 with v2.
Parameters:
v1 1st vector
v2 2nd vector

Definition at line 265 of file vm_v3math.h.

Referenced by vm_V3Math< T_fp >::are_orthogonal(), vm_V3Math< T_fp >::is_unit_vector(), and vm_V3Math< T_fp >::unitize().