#include <vector3d.H>
Public Methods | |
_vec3d () | |
_vec3d (Greal x, Greal y, Greal z) | |
const Greal * | data () const |
void | set (Greal x, Greal y, Greal z) |
V | operator+ (const V &v) const |
V | operator- (const V &v) const |
Greal | operator * (const V &v) const |
V | operator- () const |
V | operator * (Greal s) const |
V | operator/ (Greal s) const |
Greal | operator[] (int index) const |
Greal & | operator[] (int index) |
int | operator> (const V &v) const |
int | operator< (const V &v) const |
Greal | length () const |
Greal | lengthSqrd () const |
Greal | lengthRect () const |
Greal | dist (const V &v) const |
Greal | distSqrd (const V &v) const |
bool | isEqual (const V &v, Greal epsSqrd=epsNorSqrdMath()) const |
void | operator+= (const V &v) |
void | operator-= (const V &v) |
void | operator *= (Greal s) |
void | operator/= (Greal s) |
bool | operator== (const V &v) const |
bool | operator!= (const V &v) const |
bool | isNull (Greal epsSqrd=epsNorSqrdMath()) const |
Greal | angle (const V &) const |
V | normalize () const |
V | perpend () const |
bool | isParallel (const V &) const |
bool | isPerpend (const V &) const |
void | orthoplane (int &i1, int &i2) const |
void | orthoplane (int &i1, int &i2, int &i3) const |
V | orthogonalize (const V &b) |
Protected Attributes | |
Greal | _x |
Greal | _y |
Greal | _z |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|