]> git.localhorst.tv Git - space.git/blobdiff - src/math/Vector.h
controlled entity
[space.git] / src / math / Vector.h
index 5fa2eb31760bd71a7f867d5b4323cad1a9bd8afe..57159bff2e0e01193e4a8ea16952eace97e9e4b7 100644 (file)
@@ -61,6 +61,10 @@ template<class Scalar>
 constexpr Vector<Scalar> operator *(Scalar lhs, Vector<Scalar> rhs) {
        return rhs * lhs;
 }
+template<class Scalar>
+constexpr Vector<Scalar> operator *(Vector<Scalar> lhs, Vector<Scalar> rhs) {
+       return Vector<Scalar>(lhs.x * rhs.x, lhs.y * rhs.y);
+}
 
 }