From 188aab4196c1d9de0c1bf33be1114e7a0e11fd19 Mon Sep 17 00:00:00 2001 From: aap Date: Thu, 30 May 2019 21:24:47 +0200 Subject: implemented some higher level functions; added lots of stubs; switched top and bottom in CRect --- src/math/Vector.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/math/Vector.h') diff --git a/src/math/Vector.h b/src/math/Vector.h index 3dba07ca..d89ca375 100644 --- a/src/math/Vector.h +++ b/src/math/Vector.h @@ -101,6 +101,11 @@ inline CVector operator*(const CVector &left, float right) return CVector(left.x * right, left.y * right, left.z * right); } +inline CVector operator*(float left, const CVector &right) +{ + return CVector(left * right.x, left * right.y, left * right.z); +} + inline CVector operator/(const CVector &left, float right) { return CVector(left.x / right, left.y / right, left.z / right); -- cgit v1.2.3