#include <vecmath.h>
Public Member Functions | |
Point3 () | |
Point3 (const Point3 &p) | |
Point3 (double _x, double _y, double _z) | |
Point3 & | operator= (const Point3 &a) |
const double & | operator[] (int n) const |
double & | operator[] (int n) |
Point3 & | operator+= (const Vector3 &v) |
Point3 & | operator-= (const Vector3 &v) |
Point3 & | operator *= (double s) |
Vector3 | operator- (const Point3 &p) const |
Point3 | operator+ (const Vector3 &v) const |
Point3 | operator- (const Vector3 &v) const |
double | distanceTo (const Point3 &p) const |
double | distanceToSquared (const Point3 &p) const |
double | distanceFromOrigin () const |
double | distanceFromOriginSquared () const |
bool | operator== (const Point3 &p) const |
bool | operator!= (const Point3 &p) const |
bool | approxEqual (const Point3 &p, double eps=1e-12) const |
void | print () const |
Private Attributes | |
double | x |
double | y |
double | z |
Definition at line 325 of file vecmath.h.
EMAN::Point3::Point3 | ( | ) | [inline] |
EMAN::Point3::Point3 | ( | const Point3 & | p | ) | [inline] |
EMAN::Point3::Point3 | ( | double | _x, | |
double | _y, | |||
double | _z | |||
) | [inline] |
bool EMAN::Point3::approxEqual | ( | const Point3 & | p, | |
double | eps = 1e-12 | |||
) | const [inline] |
double EMAN::Point3::distanceFromOrigin | ( | ) | const [inline] |
double EMAN::Point3::distanceFromOriginSquared | ( | ) | const [inline] |
double EMAN::Point3::distanceTo | ( | const Point3 & | p | ) | const [inline] |
double EMAN::Point3::distanceToSquared | ( | const Point3 & | p | ) | const [inline] |
Point3& EMAN::Point3::operator *= | ( | double | s | ) | [inline] |
bool EMAN::Point3::operator!= | ( | const Point3 & | p | ) | const [inline] |
bool EMAN::Point3::operator== | ( | const Point3 & | p | ) | const [inline] |
double& EMAN::Point3::operator[] | ( | int | n | ) | [inline] |
const double& EMAN::Point3::operator[] | ( | int | n | ) | const [inline] |
void EMAN::Point3::print | ( | ) | const [inline] |
double EMAN::Point3::x [private] |
Definition at line 403 of file vecmath.h.
Referenced by approxEqual(), distanceFromOrigin(), distanceFromOriginSquared(), distanceTo(), distanceToSquared(), operator *=(), operator!=(), operator+(), operator+=(), operator-(), operator-=(), operator=(), operator==(), operator[](), and print().
double EMAN::Point3::y [private] |
Definition at line 403 of file vecmath.h.
Referenced by approxEqual(), distanceFromOrigin(), distanceFromOriginSquared(), distanceTo(), distanceToSquared(), operator *=(), operator!=(), operator+(), operator+=(), operator-(), operator-=(), operator=(), operator==(), and print().
double EMAN::Point3::z [private] |
Definition at line 403 of file vecmath.h.
Referenced by approxEqual(), distanceFromOrigin(), distanceFromOriginSquared(), distanceTo(), distanceToSquared(), operator *=(), operator!=(), operator+(), operator+=(), operator-(), operator-=(), operator=(), operator==(), and print().