1
0
Fork 0

include/Spectre/Math/Vector2.inl: fixing some scalar functions that did not have the correct function definition.

This commit is contained in:
Henrik Hautakoski 2018-02-27 21:13:09 +01:00
parent e0f9ffc75f
commit 72ee3fbfde

View file

@ -270,7 +270,7 @@ inline bool operator<(T s, const Vector2<T>& v)
}
template <typename T>
inline bool operator<=(const Vector2<T> v, T s)
inline bool operator<=(const Vector2<T>& v, T s)
{
return v.x <= s && v.y <= s;
}
@ -282,7 +282,7 @@ inline bool operator<=(T s, const Vector2<T>& v)
}
template <typename T>
inline bool operator>(const Vector2<T> v, T s)
inline bool operator>(const Vector2<T>& v, T s)
{
return x > s && y > s;
}
@ -294,7 +294,7 @@ inline bool operator>(T s, const Vector2<T>& v)
}
template <typename T>
inline bool operator>=(const Vector2<T> v, T s)
inline bool operator>=(const Vector2<T>& v, T s)
{
return v.x >= s && v.y >= s;
}