diff --git a/util/Vector.h b/util/Vector.h index 283f7f0..6794e16 100644 --- a/util/Vector.h +++ b/util/Vector.h @@ -18,6 +18,7 @@ class Vector double dist_to(const Vector & other) const; Vector proj(const Vector & target) const; Vector reflect(const Vector & target) const; + operator double() { return mag(); } protected: double m_array[3];