|
Claw
1.7.3
|
Coordinates in a two dimensional space. More...
#include <coordinate_2d.hpp>
Public Types | |
| typedef T | value_type |
| The type of the values we store. | |
| typedef coordinate_2d< value_type > | self_type |
| The type of the current class. | |
Public Member Functions | |
| template<typename U > | |
| coordinate_2d (const coordinate_2d< U > &that) | |
| coordinate_2d (const value_type &_x, const value_type &_y) | |
| template<typename U > | |
| coordinate_2d< U > | cast_value_type_to () const |
| void | set (const value_type &_x, const value_type &_y) |
| value_type | distance (const self_type &p) const |
| void | rotate (const self_type ¢er, double angle) |
| double | slope_angle (const self_type &to) const |
| bool | operator== (const self_type &vect) const |
| bool | operator!= (const self_type &vect) const |
| self_type | operator+ (const self_type &vect) const |
| self_type | operator- (const self_type &vect) const |
| self_type & | operator+= (const self_type &vect) |
| self_type & | operator-= (const self_type &vect) |
| self_type | operator* (const value_type &v) const |
| self_type | operator/ (const value_type &v) const |
| self_type & | operator*= (const value_type &v) |
| self_type & | operator/= (const value_type &v) |
Public Attributes | |
| value_type | x |
| X-coordinate. | |
| value_type | y |
| Y-coordinate. | |
Coordinates in a two dimensional space.
Definition at line 42 of file coordinate_2d.hpp.
1.8.13