#include <Vec.h>
Public Member Functions | |
Vec (double a0, double a1, double a2) | |
Vec () | |
double | length () const |
double | distance (const Vec &other) const |
double | dotProduct (const Vec &other) const |
Vec | crossProduct (const Vec &other) const |
void | unitLength () |
Rescales vector so it has unit length. | |
void | orthogonalAxes (Vec &u, Vec &v) const |
Generates vectors u and v to form a mutually orthogonal system. | |
double | a0 () const |
double | a1 () const |
double | a2 () const |
Vec | pointOnLine (const Vec &end, double k) |
bool | operator== (const Vec &other) const |
Vec | operator- (const Vec &other) const |
Vec | operator+ (const Vec &other) const |
Vec | operator* (const double &other) const |
Vec::Vec | ( | double | a0, | |
double | a1, | |||
double | a2 | |||
) |
Vec::Vec | ( | ) | [inline] |
Referenced by crossProduct(), operator*(), operator+(), operator-(), orthogonalAxes(), and pointOnLine().
double Vec::a0 | ( | ) | const [inline] |
Referenced by fillPointsOnCircle(), and NeuroMesh::indexToSpace().
double Vec::a1 | ( | ) | const [inline] |
Referenced by fillPointsOnCircle(), and NeuroMesh::indexToSpace().
double Vec::a2 | ( | ) | const [inline] |
Referenced by fillPointsOnCircle(), and NeuroMesh::indexToSpace().
References Vec().
Referenced by orthogonalAxes(), and testVec().
double Vec::distance | ( | const Vec & | other | ) | const |
double Vec::length | ( | ) | const |
Referenced by orthogonalAxes(), and unitLength().
Vec Vec::operator* | ( | const double & | other | ) | const |
bool Vec::operator== | ( | const Vec & | other | ) | const |
Generates vectors u and v to form a mutually orthogonal system.
References crossProduct(), doubleApprox(), doubleEq(), length(), unitLength(), and Vec().
Referenced by testVec().
Returns a point on the line from self to 'end', a fraction k from the 'self'. r = self + k.(end - self)
References Vec().
Referenced by CylBase::nearest().
void Vec::unitLength | ( | ) |
Rescales vector so it has unit length.
References length().
Referenced by orthogonalAxes().