3 dimensional vector
More...
|
| Pos () |
|
| Pos (bool valid) |
|
| Pos (double x, double y) |
|
| Pos (double x, double y, double z) |
|
| Pos (const Pos &pos) |
|
Pos & | operator= (const Pos &pos) |
|
Pos & | operator= (const Vector< double > &v) |
|
double & | operator[] (Index i) |
|
const double & | operator[] (Index i) const |
|
Pos | operator- () const |
|
void | setValid (bool valid) |
|
bool | valid () const |
|
void | assign (const double &x, const double &y, const double &z) |
|
const double & | x () const |
|
const double & | y () const |
|
const double & | z () const |
|
void | setX (double x) |
|
void | setY (double y) |
|
void | setZ (double z) |
|
void | setVal (const double &val, Index i) |
|
const double & | getVal (Index i) const |
|
Pos & | round (double tol) |
|
double | distSquared (const Pos &p) const |
|
double | dist (const Pos &p) const |
|
double | distance (const Pos &p) const |
|
double | distSquared () const |
|
double | abs () const |
|
double | length () const |
|
double | angle (const Pos &p) const |
|
double | angle (const RVector3 &p1, const RVector3 &p3) const |
|
double | dot (const Pos &p) const |
|
double | sum () const |
|
Pos | norm (const Pos &p1, const Pos &p2) const |
|
Pos | norm () const |
|
Pos & | normalize () |
|
Pos & | normalise () |
|
Pos | cross (const Pos &p) const |
|
Pos | normXY (const Pos &p) const |
|
template<class Matrix > |
Pos & | transform (const Matrix &wm) |
|
Pos & | rotateX (double phi) |
|
Pos & | rotateY (double phi) |
|
Pos & | rotateZ (double phi) |
|
Pos & | rotate (const RVector3 &r) |
|
Pos & | rotate (double phiX, double phiY, double phiZ) |
|
Pos & | scale (const RVector3 &s) |
|
Pos & | translate (const RVector3 &t) |
|
Pos & | translate (double x, double y=0.0, double z=0.0) |
|
RVector | vec () const |
|
Index | hash () const |
|
void | swap (Index i, Index j) |
|
|
void | copy_ (const Pos &pos) |
|
|
bool | valid_ |
|
double | mat_ [3] |
|
3 dimensional vector
3 dimensional vector
◆ Pos() [1/2]
Construct an empty in 3d at (0, 0, 0)
◆ Pos() [2/2]
GIMLI::Pos::Pos |
( |
bool |
valid | ) |
|
|
inline |
Construct an empty in 3d at (0, 0, 0). Optional set valid flag.
◆ abs()
double GIMLI::Pos::abs |
( |
| ) |
const |
|
inline |
◆ angle() [1/2]
double GIMLI::Pos::angle |
( |
const Pos & |
p | ) |
const |
Return the angle between (this, (origin), p).
References abs().
◆ angle() [2/2]
Return the angle between (p1, this, p2).
◆ dist()
double GIMLI::Pos::dist |
( |
const Pos & |
p | ) |
const |
|
inline |
◆ distance()
double GIMLI::Pos::distance |
( |
const Pos & |
p | ) |
const |
|
inline |
◆ distSquared() [1/2]
double GIMLI::Pos::distSquared |
( |
| ) |
const |
|
inline |
Return the squared length of this position vector.
◆ distSquared() [2/2]
double GIMLI::Pos::distSquared |
( |
const Pos & |
p | ) |
const |
|
inline |
◆ getVal()
const double& GIMLI::Pos::getVal |
( |
Index |
i | ) |
const |
|
inline |
Get a value. Throws out of range exception if index check fails.
◆ length()
double GIMLI::Pos::length |
( |
| ) |
const |
|
inline |
◆ norm()
Pos GIMLI::Pos::norm |
( |
| ) |
const |
|
inline |
◆ normalise()
Pos& GIMLI::Pos::normalise |
( |
| ) |
|
|
inline |
DEPRECATED Normalise for backward compatibility.
◆ normalize()
Pos& GIMLI::Pos::normalize |
( |
| ) |
|
|
inline |
◆ operator=() [1/2]
Pos& GIMLI::Pos::operator= |
( |
const Pos & |
pos | ) |
|
|
inline |
◆ operator=() [2/2]
Pos& GIMLI::Pos::operator= |
( |
const Vector< double > & |
v | ) |
|
|
inline |
◆ round()
Pos& GIMLI::Pos::round |
( |
double |
tol | ) |
|
|
inline |
◆ setVal()
void GIMLI::Pos::setVal |
( |
const double & |
val, |
|
|
Index |
i |
|
) |
| |
|
inline |
Set a value. Throws out of range exception if index check fails.
◆ swap()
void GIMLI::Pos::swap |
( |
Index |
i, |
|
|
Index |
j |
|
) |
| |
|
inline |
Swap coordinates i and j [0..3)