X-Git-Url: http://git.localhorst.tv/?p=space.git;a=blobdiff_plain;f=src%2Fmath%2FVector.h;fp=src%2Fmath%2FVector.h;h=57159bff2e0e01193e4a8ea16952eace97e9e4b7;hp=5fa2eb31760bd71a7f867d5b4323cad1a9bd8afe;hb=3f4f8a92f64df08119a40da4d196b3e92ecdc637;hpb=96ab5904b059e00e78b26a6527790c8dc951e324 diff --git a/src/math/Vector.h b/src/math/Vector.h index 5fa2eb3..57159bf 100644 --- a/src/math/Vector.h +++ b/src/math/Vector.h @@ -61,6 +61,10 @@ template constexpr Vector operator *(Scalar lhs, Vector rhs) { return rhs * lhs; } +template +constexpr Vector operator *(Vector lhs, Vector rhs) { + return Vector(lhs.x * rhs.x, lhs.y * rhs.y); +} }