File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 1
1
#include " Point2D.h"
2
+ #include < cstdint>
2
3
3
4
const Point2D Point2D::UP = Point2D(0 , -1 );
4
5
const Point2D Point2D::DOWN = Point2D(0 , 1 );
5
6
const Point2D Point2D::LEFT = Point2D(-1 , 0 );
6
7
const Point2D Point2D::RIGHT = Point2D(1 , 0 );
7
- const Point2D Point2D::INFINITE = Point2D(INT_MAX, INT_MAX );
8
+ const Point2D Point2D::INFINITE = Point2D(INT32_MAX, INT32_MAX );
8
9
9
10
bool Point2D::operator ==(const Point2D& rhs) const { return y == rhs.y && x == rhs.x ; }
10
11
Original file line number Diff line number Diff line change @@ -138,5 +138,7 @@ template <FloatType T> struct Vector2 {
138
138
};
139
139
140
140
using Vector2f = Vector2<float >;
141
+ using Vector2d = Vector2<double >;
142
+ using Vector2lf = Vector2<long double >;
141
143
142
144
#endif // VECTOR2_H
You can’t perform that action at this time.
0 commit comments