Vec operator*(const double &other) const
Vec operator+(const Vec &other) const
Vec crossProduct(const Vec &other) const
Vec operator-(const Vec &other) const
bool operator==(const Vec &other) const
void unitLength()
Rescales vector so it has unit length.
double distance(const Vec &other) const
double dotProduct(const Vec &other) const
void orthogonalAxes(Vec &u, Vec &v) const
Generates vectors u and v to form a mutually orthogonal system.
Vec pointOnLine(const Vec &end, double k)