vm_math
1.0.7
|
#include <vm_math/vm_v3math.h>
Public Types | |
typedef T_fp | value_type |
![]() | |
typedef T_fp | value_type |
Static Public Member Functions | |
static void | set (T_fp v[], T_fp x, T_fp y, T_fp z) |
static void | set (T_fp v[], T_fp x) |
static T_fp | unitize (T_fp v[]) |
static T_fp | unitize (T_fp vu[], T_fp const vi[]) |
static int | is_unit_vector (T_fp const v[], T_fp const tol) |
static int | are_orthogonal (T_fp const v[], T_fp const other[], T_fp const tol) |
static int | are_orthonormal (T_fp const v[], T_fp const other[], T_fp const tol) |
static T_fp | dot (T_fp const v1[], T_fp const v2[]) |
static void | cross (T_fp prod[], T_fp const v1[], T_fp const v2[]) |
static std::ostream & | print_on (std::ostream &os, T_fp const v[], char const prefix[]="", char const postfix[]="") |
static void | cprint_on (FILE *of, T_fp const v[], char const prefix[]="", char const postfix[]="") |
![]() | |
static void | copy (T_fp v[], T_fp const cv[]) |
static void | set (T_fp v[], T_fp r) |
static void | add_eq (T_fp v[], T_fp const cv[]) |
static void | add_eq (T_fp v[], T_fp r) |
static void | sub_eq (T_fp v[], T_fp const cv[]) |
static void | sub_eq (T_fp v[], T_fp r) |
static void | mul_eq (T_fp v[], T_fp const cv[]) |
static void | mul_eq (T_fp v[], T_fp r) |
static void | div_eq (T_fp v[], T_fp const cv[]) |
static void | div_eq (T_fp v[], T_fp r) |
static void | negate (T_fp v[]) |
static void | add (T_fp v[], T_fp const cv1[], T_fp const cv2[]) |
static void | add (T_fp v[], T_fp const cv[], T_fp r) |
static void | add (T_fp v[], T_fp r, T_fp const cv[]) |
static void | sub (T_fp v[], T_fp const cv1[], T_fp const cv2[]) |
static void | sub (T_fp v[], T_fp const cv[], T_fp r) |
static void | sub (T_fp v[], T_fp r, T_fp const cv[]) |
static void | mul (T_fp v[], T_fp const cv1[], T_fp const cv2[]) |
static void | mul (T_fp v[], T_fp const cv[], T_fp r) |
static void | mul (T_fp v[], T_fp r, T_fp const cv[]) |
static void | div (T_fp v[], T_fp const cv1[], T_fp const cv2[]) |
static void | div (T_fp v[], T_fp const cv[], T_fp r) |
static void | div (T_fp v[], T_fp r, T_fp const cv[]) |
static void | lincomb (T_fp res[], T_fp c1, T_fp const v1[], T_fp c2, T_fp const v2[]) |
static std::ostream & | print_on (std::ostream &os, T_fp const v[], int by, char const prefix[]="", char const postfix[]="") |
static void | cprint_on (FILE *of, T_fp const v[], int by, char const prefix[]="", char const postfix[]="") |
A template class providing common numerical operations on 3-vectors of T_fp's (floating point type).
Unless otherwise noted, the operations are component by component, e.g.,
vm_V3Mathlt<float>::div_eq(v1, v2)
corresponds to
v1[i] /= v2[i], where i = 0,1,2.
vm_V3Math has only static member functions; there are no data members.
Where possible, the static member functions are inlined.
Definition at line 69 of file vm_v3math.h.
vm_V3Math< T_fp >::value_type |
A typedef for the floating point type;
Definition at line 83 of file vm_v3math.h.