mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 14:21:04 +08:00
Increase precision of operator<<(Vector2<T>)
This commit is contained in:
parent
88515b2fca
commit
049e3ce8f2
@ -9,6 +9,7 @@
|
||||
#include <SFML/System/Vector2.hpp>
|
||||
#include <SFML/System/Vector3.hpp>
|
||||
|
||||
#include <iomanip>
|
||||
#include <ostream>
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
@ -27,6 +28,7 @@ namespace sf
|
||||
template <typename T>
|
||||
std::ostream& operator <<(std::ostream& os, const sf::Vector2<T>& vector)
|
||||
{
|
||||
os << std::fixed << std::setprecision(std::numeric_limits<T>::max_digits10);
|
||||
os << "(" << vector.x << ", " << vector.y << ")";
|
||||
return os;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user