14 #ifndef GK_VECTOR2_HPP_ 15 #define GK_VECTOR2_HPP_ 43 throw std::overflow_error(
"Divide by zero exception");
57 bool operator<(const Vector2<T> &vector2)
const {
return x < vector2.x &&
y <= vector2.y; }
74 #endif // GK_VECTOR2_HPP_
Vector2 operator+(const Vector2< T > &vector2) const
Vector2 & operator*=(T n)
Vector2 operator/(T n) const
Vector2 & operator-=(const Vector2 &vector2)
bool operator>(const Vector2< T > &vector2) const
Vector2 operator*(T n) const
Vector2 & operator/=(T n)
Vector2 operator-() const
Vector2(const Vector2< U > &vector2)
Vector2 operator-(const Vector2< T > &vector2) const
bool operator==(const Vector2< T > &vector2) const
Vector2 & operator+=(const Vector2 &vector2)
bool operator!=(const Vector2< T > &vector2) const