#include <girl/girlPoint.hpp>
Public Member Functions | |
point (POINT_TYPE px=0, POINT_TYPE py=0) | |
Constructor. | |
void | move (girl::direction d) |
Move this point in direction d. | |
girl::direction | directionTo (const girl::point &pt) const |
Give direction from this to point pt. | |
void | write (girl::io::Writer &w, girl::io::Type ioType) const |
Write point p with function fct. | |
bool | read (girl::io::Reader &r, girl::io::Type ioType) |
Read point p with function fct. |
girl::direction girl::point::directionTo | ( | const girl::point & | pt | ) | const [inline] |
Give direction from this to point pt.
References girl::TPoint< T >::m_x, and girl::TPoint< T >::m_y.
bool girl::point::read | ( | girl::io::Reader & | r, | |
girl::io::Type | ioType | |||
) | [inline] |
Read point p with function fct.
user_data allows to pass a context to the function.
References girl::TPoint< T >::m_x, and girl::TPoint< T >::m_y.
void girl::point::write | ( | girl::io::Writer & | w, | |
girl::io::Type | ioType | |||
) | const [inline] |
Write point p with function fct.
user_data allows to pass a context to the function.
References girl::TPoint< T >::m_x, and girl::TPoint< T >::m_y.