1
0
Fork 0

include/Spectre/Math/Vector2.inl: less than or equal operator should be written as "<=" not "=<"

This commit is contained in:
Henrik Hautakoski 2019-05-31 15:45:33 +02:00
parent 482ce62023
commit 0c76494939

View file

@ -86,7 +86,7 @@ inline bool operator<(const Vector2<T>& a, const Vector2<T>& b)
template<typename T>
inline bool operator<=(const Vector2<T>& a, const Vector2<T>& b)
{
return a.x =< b.x && a.y <= b.y;
return a.x <= b.x && a.y <= b.y;
}
template<typename T>
@ -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;
}