geo::Point Class Reference

#include <point.h>

List of all members.

Public Member Functions

 Point (int x, int y)
 Point ()
virtual ~Point ()
int XCoordinate () const
int YCoordinate () const
void SetXCoordinate (int v)
void SetyCoordinate (int v)
Point operator+ (Point &p)

Protected Attributes

int m_x
int m_y


Detailed Description

A point class with a couple of useful functions


Constructor & Destructor Documentation

geo::Point::Point ( int  x,
int  y 
)

Constructor that expects x and y

Parameters:
x X-coordinate
y Y-coordinate

geo::Point::Point (  )  [inline]

Standart constructor

virtual geo::Point::~Point (  )  [inline, virtual]

Standart destructor


Member Function Documentation

int geo::Point::XCoordinate (  )  const

Asks for the X-coordinate

Returns:
Returns the value

int geo::Point::YCoordinate (  )  const

Asks for the Y-coordinate

Returns:
Returns the value

void geo::Point::SetXCoordinate ( int  v  ) 

Sets the X-coordinate

Parameters:
v the value

void geo::Point::SetyCoordinate ( int  v  ) 

Sets the Y-coordinate

Parameters:
v the value

Point geo::Point::operator+ ( Point p  ) 

Overloaded + operator, that sums x and y

Parameters:
p the other point
Returns:
the sum as Point


Member Data Documentation

int geo::Point::m_x [protected]

int geo::Point::m_y [protected]


The documentation for this class was generated from the following files:
Generated on Wed Feb 21 21:50:47 2007 for Minup by  doxygen 1.5.1-p1