nec2++
1.7.0
|
A Class for handling 3 dimensional vectors. More...
#include <math_util.h>
Public Member Functions | |
nec_3vector (const nec_float &in_x, const nec_float &in_y, const nec_float &in_z) | |
nec_float | norm () const |
The Euclidian norm. More... | |
nec_float | norm2 () const |
nec_float | normL1 () const |
The L1-distance (often called the Manhattan norm) More... | |
nec_3vector & | operator= (const nec_3vector ©) |
int | operator== (const nec_3vector ©) const |
nec_3vector & | operator+= (const nec_3vector &a) |
nec_3vector | operator+ (nec_float a) const |
nec_3vector | operator+ (const nec_3vector &a) const |
nec_3vector & | operator-= (const nec_3vector &a) |
nec_3vector | operator- (const nec_3vector &a) const |
nec_3vector & | operator/= (const nec_float &a) |
nec_3vector | operator/ (nec_float a) const |
nec_float | dot (const nec_3vector &a) const |
nec_3vector & | operator*= (const nec_float &a) |
nec_3vector | operator* (nec_float a) const |
nec_float & | operator() (int i) |
const nec_float & | operator() (int i) const |
nec_3vector | operator* (const nec_3vector &a) const |
Cross-product. | |
nec_float | x () const |
nec_float | y () const |
nec_float | z () const |
A Class for handling 3 dimensional vectors.
|
inline |
|
inline |
The L1-distance (often called the Manhattan norm)
!