include/Spectre/Math/Vector2.inl: fixing some scalar functions that did not have the correct function definition.
This commit is contained in:
parent
e0f9ffc75f
commit
72ee3fbfde
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue