30 #ifndef __CLAW_COORDINATE_2D_HPP__ 31 #define __CLAW_COORDINATE_2D_HPP__ 62 void set(
const value_type& _x,
const value_type& _y);
63 value_type distance(
const self_type& p)
const;
65 void rotate(
const self_type& center,
double angle );
66 double slope_angle(
const self_type& to )
const;
68 bool operator==(
const self_type& vect)
const;
69 bool operator!=(
const self_type& vect)
const;
70 self_type operator+(
const self_type& vect)
const;
71 self_type operator-(
const self_type& vect)
const;
72 self_type& operator+=(
const self_type& vect);
73 self_type& operator-=(
const self_type& vect);
75 self_type operator*(
const value_type& v )
const;
76 self_type operator/(
const value_type& v )
const;
77 self_type& operator*=(
const value_type& v );
78 self_type& operator/=(
const value_type& v );
92 template<
typename T,
typename U>
98 #include <claw/impl/coordinate_2d.tpp> 100 #endif // __CLAW_COORDINATE_2D_HPP__ T value_type
The type of the values we store.
coordinate_2d< value_type > self_type
The type of the current class.
Coordinates in a two dimensional space.
value_type y
Y-coordinate.
This is the main namespace.
value_type x
X-coordinate.