girl::point Class Reference

2D point class. More...

#include <girl/girlPoint.hpp>

Inheritance diagram for girl::point:

girl::TPoint< T >

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.

Detailed Description

2D point class.

Member Function Documentation

girl::direction girl::point::directionTo ( const girl::point pt  )  const [inline]

Give direction from this to point pt.

Warning:
consider only 4-connexity.

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.

Returns:
true if read was ok, else false.

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.


The documentation for this class was generated from the following file:

Generated on Thu Jun 4 14:30:33 2009 for GIRL: General Image Representation Library by  doxygen 1.5.7.1