ergo
|
A representation of Vector or point in cartesian space. More...
#include <molecule.h>
Public Member Functions | |
Vector3D () | |
Vector3D (ergo_real x, ergo_real y, ergo_real z) | |
ergo_real & | operator[] (unsigned i) |
ergo_real | operator[] (unsigned i) const |
ergo_real | dist2 (const ergo_real b[]) const |
compute square of distance between two points. More... | |
ergo_real | dist (const Vector3D &b) const |
compute distance between two points. More... | |
ergo_real | dist (const ergo_real b[]) const |
Public Attributes | |
ergo_real | v [3] |
A representation of Vector or point in cartesian space.
It provides means to compute distance between two pointsi space.
|
inline |
References dist2(), and template_blas_sqrt().
compute distance between two points.
References dist2(), template_blas_sqrt(), and v.
Referenced by Box::getDistanceTo(), and main().
ergo_real Vector3D::v[3] |