9 #ifndef _utl_OperationsVV_h_
10 #define _utl_OperationsVV_h_
12 #include <utl/Vector.h>
73 const double magnitudeA = l.
GetMag();
74 const double magnitudeB = r.
GetMag();
75 return (magnitudeA && magnitudeB) ?
76 (l * r) / (magnitudeA * magnitudeB) : 1;
89 const double d2 = (a -
b).GetMag2();
91 return 2 * std::asin(0.5 *
std::sqrt(d2));
93 return 2 * std::acos(0.5 * (a + b).GetMag());
Point operator-(const Point &l, const Vector &r)
fs::path operator+(const fs::path &thePath, const string &extra)
Vector operator/(const Vector &v, const double d)
Vector operator*(const double d, const Vector &v)
CoordinateSystemPtr fCoordinateSystem
double Angle(const Vector &left, const Vector &right)
double CosAngle(const Vector &l, const Vector &r)