From 72ee3fbfdee08acded5a8e89b69482e6474ffb8b Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Tue, 27 Feb 2018 21:13:09 +0100 Subject: [PATCH] include/Spectre/Math/Vector2.inl: fixing some scalar functions that did not have the correct function definition. --- include/Spectre/Math/Vector2.inl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/Spectre/Math/Vector2.inl b/include/Spectre/Math/Vector2.inl index a22f343..f636623 100644 --- a/include/Spectre/Math/Vector2.inl +++ b/include/Spectre/Math/Vector2.inl @@ -270,7 +270,7 @@ inline bool operator<(T s, const Vector2& v) } template -inline bool operator<=(const Vector2 v, T s) +inline bool operator<=(const Vector2& v, T s) { return v.x <= s && v.y <= s; } @@ -282,7 +282,7 @@ inline bool operator<=(T s, const Vector2& v) } template -inline bool operator>(const Vector2 v, T s) +inline bool operator>(const Vector2& v, T s) { return x > s && y > s; } @@ -294,7 +294,7 @@ inline bool operator>(T s, const Vector2& v) } template -inline bool operator>=(const Vector2 v, T s) +inline bool operator>=(const Vector2& v, T s) { return v.x >= s && v.y >= s; }