12 #include "../basecode/doubleEq.h"
15 : a0_( a0 ), a1_( a1 ), a2_( a2 )
30 return Vec( c0, c1, c2 );
83 return ( *
this - other ).length();
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 doubleApprox(double x, double y)
bool operator==(const Vec &other) const
bool doubleEq(double x, double y)
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)