3 #ifndef GDCORE_VECTOR2_H
4 #define GDCORE_VECTOR2_H
81 x(static_cast<T>(vector.
x)),
82 y(static_cast<T>(vector.
y))
101 template <
typename T>
120 template <
typename T>
142 template <
typename T>
161 template <
typename T>
177 template <
typename T>
193 template <
typename T>
209 template <
typename T>
228 template <
typename T>
247 template <
typename T>
266 template <
typename T>
287 template <
typename T>
290 return (left.
x == right.
x) && (left.
y == right.
y);
305 template <
typename T>
308 return (left.
x != right.
x) || (left.
y != right.
y);
Utility template class for manipulating 2-dimensional vectors.
Definition: Vector2.h:40
Vector2()
Default constructor.
Definition: Vector2.h:49
Vector2(const Vector2< U > &vector)
Construct the vector from another type of vector.
Definition: Vector2.h:80
Vector2(T X, T Y)
Construct the vector from its coordinates.
Definition: Vector2.h:62
T y
Y coordinate of the vector.
Definition: Vector2.h:89
T x
X coordinate of the vector.
Definition: Vector2.h:88
Definition: CommonTools.h:24