14 #ifndef GK_VECTOR3_HPP_ 15 #define GK_VECTOR3_HPP_ 46 throw std::overflow_error(
"Divide by zero exception");
60 bool operator<(const Vector3<T> &vector3)
const {
return x < vector3.x &&
y <= vector3.y &&
z <= vector3.z; }
85 auto h1 = hash(vector3.
x);
86 auto h2 = hash(vector3.
y);
87 auto h3 = hash(vector3.
z);
89 return std::hash<T>{}(h1 ^ (h2 << h3) ^ h3);
94 #endif // GK_VECTOR3_HPP_
Vector3 & operator/=(T n)
Vector3 operator+(const Vector3< T > &vector3) const
bool operator>(const Vector3< T > &vector3) const
bool operator==(const Vector3< T > &vector3) const
Vector3(T _x, T _y, T _z)
size_t operator()(const gk::Vector3< T > &vector3) const
Vector3 operator-() const
Vector3(const Vector2< U > &vector2, U _z)
Vector3 operator/(T n) const
bool operator!=(const Vector3< T > &vector3) const
Vector3 & operator-=(const Vector3 &vector3)
Vector3 & operator+=(const Vector3 &vector3)
Vector3 & operator*=(T n)
Vector3(const Vector3< U > &vector3)
Vector3 operator*(T n) const
Vector3 operator-(const Vector3< T > &vector3) const