1
0
Fork 0

Math/Vector2: inline toString()

This commit is contained in:
Henrik Hautakoski 2020-02-12 08:52:08 +01:00
parent e888626b03
commit c0f44016c6
No known key found for this signature in database
GPG key ID: 96765B12FEAC4745
2 changed files with 2 additions and 2 deletions

View file

@ -39,7 +39,7 @@ struct Vector2
inline Vector2<T>& reflect(const Vector2<T>& n);
std::string toString() const;
inline std::string toString() const;
};
// ------------

View file

@ -58,7 +58,7 @@ inline Vector2<T>& Vector2<T>::reflect(const Vector2<T>& n)
}
template <typename T>
std::string Vector2<T>::toString() const
inline std::string Vector2<T>::toString() const
{
return core::to_string(x) + ", " + core::to_string(y);
}