We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3babb15 commit 06bdc7bCopy full SHA for 06bdc7b
core/math/Point2D.cpp
@@ -1,10 +1,11 @@
1
#include "Point2D.h"
2
+#include <cstdint>
3
4
const Point2D Point2D::UP = Point2D(0, -1);
5
const Point2D Point2D::DOWN = Point2D(0, 1);
6
const Point2D Point2D::LEFT = Point2D(-1, 0);
7
const Point2D Point2D::RIGHT = Point2D(1, 0);
-const Point2D Point2D::INFINITE = Point2D(INT_MAX, INT_MAX);
8
+const Point2D Point2D::INFINITE = Point2D(INT32_MAX, INT32_MAX);
9
10
bool Point2D::operator==(const Point2D& rhs) const { return y == rhs.y && x == rhs.x; }
11
core/math/Vector2.h
@@ -138,5 +138,7 @@ template <FloatType T> struct Vector2 {
138
};
139
140
using Vector2f = Vector2<float>;
141
+using Vector2d = Vector2<double>;
142
+using Vector2lf = Vector2<long double>;
143
144
#endif // VECTOR2_H
0 commit comments