#include <vecmath.h>
Public Member Functions | |
Vector3 () | |
Vector3 (const Vector3 &v) | |
Vector3 (double _x, double _y, double _z) | |
Vector3 & | operator= (const Vector3 &a) |
const double & | operator[] (int n) const |
double & | operator[] (int n) |
Vector3 & | operator+= (const Vector3 &a) |
Vector3 & | operator-= (const Vector3 &a) |
Vector3 & | operator *= (double s) |
Vector3 | operator- () const |
Vector3 | operator+ () const |
Vector3 | operator+ (const Vector3 &v) const |
Vector3 | operator- (const Vector3 &v) const |
Vector3 | operator/ (const double s) const |
Vector3 | operator * (const double s) const |
double | operator * (const Vector3 &v) const |
Vector3 | operator^ (const Vector3 &v) const |
double | length () const |
double | lengthSquared () const |
void | normalize () |
bool | operator== (const Vector3 &v) const |
bool | operator!= (const Vector3 &v) const |
bool | approxEqual (const Vector3 &v, double eps=1e-12) const |
void | print () const |
Private Attributes | |
double | x |
double | y |
double | z |
Definition at line 206 of file vecmath.h.
EMAN::Vector3::Vector3 | ( | ) | [inline] |
Definition at line 208 of file vecmath.h.
Referenced by operator *(), operator+(), operator-(), operator/(), and operator^().
EMAN::Vector3::Vector3 | ( | const Vector3 & | v | ) | [inline] |
EMAN::Vector3::Vector3 | ( | double | _x, | |
double | _y, | |||
double | _z | |||
) | [inline] |
bool EMAN::Vector3::approxEqual | ( | const Vector3 & | v, | |
double | eps = 1e-12 | |||
) | const [inline] |
double EMAN::Vector3::length | ( | ) | const [inline] |
double EMAN::Vector3::lengthSquared | ( | ) | const [inline] |
void EMAN::Vector3::normalize | ( | ) | [inline] |
double EMAN::Vector3::operator * | ( | const Vector3 & | v | ) | const [inline] |
Vector3 EMAN::Vector3::operator * | ( | const double | s | ) | const [inline] |
Vector3& EMAN::Vector3::operator *= | ( | double | s | ) | [inline] |
bool EMAN::Vector3::operator!= | ( | const Vector3 & | v | ) | const [inline] |
Vector3 EMAN::Vector3::operator+ | ( | ) | const [inline] |
Vector3 EMAN::Vector3::operator- | ( | ) | const [inline] |
Vector3 EMAN::Vector3::operator/ | ( | const double | s | ) | const [inline] |
bool EMAN::Vector3::operator== | ( | const Vector3 & | v | ) | const [inline] |
double& EMAN::Vector3::operator[] | ( | int | n | ) | [inline] |
const double& EMAN::Vector3::operator[] | ( | int | n | ) | const [inline] |
void EMAN::Vector3::print | ( | ) | const [inline] |
double EMAN::Vector3::x [private] |
Definition at line 302 of file vecmath.h.
Referenced by approxEqual(), length(), lengthSquared(), normalize(), operator *(), operator *=(), operator!=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator=(), operator==(), operator[](), operator^(), and print().
double EMAN::Vector3::y [private] |
Definition at line 302 of file vecmath.h.
Referenced by approxEqual(), length(), lengthSquared(), normalize(), operator *(), operator *=(), operator!=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator=(), operator==(), operator^(), and print().
double EMAN::Vector3::z [private] |
Definition at line 302 of file vecmath.h.
Referenced by approxEqual(), length(), lengthSquared(), normalize(), operator *(), operator *=(), operator!=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator=(), operator==(), operator^(), and print().