#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. | |
ergo_real | dist (const Vector3D &b) const |
compute distance between two points. | |
ergo_real | dist (const ergo_real b[]) const |
Public Attributes | |
ergo_real | v [3] |
It provides means to compute distance between two pointsi space.
Vector3D::Vector3D | ( | ) | [inline] |
compute square of distance between two points.
ergo_real Vector3D::operator[] | ( | unsigned | i | ) | const [inline] |
ergo_real& Vector3D::operator[] | ( | unsigned | i | ) | [inline] |