#include <vector.h>
Public Methods | |
Vector () | |
Vector (const Vector &) | |
Vector (Vector &, Vector &) | |
Vector (rvfloat x, rvfloat y, rvfloat z) | |
Vector | operator- (Vector &) |
Vector | operator+ (Vector &) |
bool | operator<= (const Vector &) const |
Vector | operator * (rvfloat scalefac) |
Vector | operator/ (rvfloat scalediv) |
Vector | operator * (Vector &) |
bool | operator== (const Vector &) const |
bool | operator!= (const Vector &) const |
rvfloat | length (void) const |
rvfloat | lengthXZ (void) const |
bool | normalize (void) |
bool | normalizeXZ (void) |
rvfloat | scalarprod (const Vector &) const |
rvfloat | scalarprod_xz (const Vector &) const |
void | rotate_right_xz (void) |
bool | isnull () const |
bool | perp (const Vector &v) const |
bool | unidir (const Vector &v) const |
rvfloat& | x (void) |
rvfloat& | y (void) |
rvfloat& | z (void) |
rvfloat | x (void) const |
rvfloat | y (void) const |
rvfloat | z (void) const |
rvfloat | x (rvfloat) |
rvfloat | y (rvfloat) |
rvfloat | z (rvfloat) |
rvfloat& | operator[] (int i) |
Public Attributes | |
rvfloat | coord [3] |
Static Public Methods | |
bool | right_perp_triplet (Vector &v1, Vector &v2, Vector &v3) |
This class is directly written to and read from files.
It may only contain the three coordinates, and nothing more that requires storage memory, like virtual functions.
|
|
|
ctor: copy from other vector |
|
ctor: be the normal vector to those |
|
ctor: spec. x,y,z |
|
|
|
|
|
|
|
tries to rescale a vector to have length 1.0
|
|
|
|
cross product (result is a (not the) normal vector to this and the argument vector) |
|
scales a vector by scalefac |
|
|
|
|
|
|
|
scales a vector by scalediv |
|
Is a x1<x2 && y1<y2 && z1<z2 |
|
equal op. Does return |
|
|
|
true if perpendicular to other vector (nullvector is always!) |
|
true if v1,v2 and v3 (in this order) form a right-handed perpendicular triplet |
|
rotates the vector by 90 degrees in the X-Z-plane |
|
scalar product |
|
scalar product ignoring Y |
|
true if parallel and unidirectional to other vector (never to nullvector) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|