BoardLib::Point Struct Reference

Struct representing a 2D point. More...

#include <Point.h>

List of all members.

Public Member Functions

 Point (double x=0.0, double y=0.0)
Pointrotate (double angle)
void get (double &x, double &y) const
Point getRotate (double angle) const
Pointrotate (double angle, const Point &center)
PointgetRotate (double angle, const Point &center) const
Pointoperator+= (const Point &other)
Pointoperator-= (const Point &other)
Pointoperator *= (double s)
Pointoperator/= (double s)
double norm () const

Public Attributes

double x
double y


Detailed Description

Struct representing a 2D point.

The Point structure.


Constructor & Destructor Documentation

BoardLib::Point::Point ( double  x = 0.0,
double  y = 0.0 
) [inline]

Point constructor.

Parameters:
x The point's first coordinate.
y The point's second coordinate.


Member Function Documentation

Point & BoardLib::Point::rotate ( double  angle  )  [inline]

Rotate the point with a given angle around the origin (0,0)

Parameters:
angle The rotation angle.

void BoardLib::Point::get ( double &  x,
double &  y 
) const [inline]

Get the values of the x and y values.

Parameters:
x Reference to the x to be set.
y Reference to the y to be set.

Point BoardLib::Point::getRotate ( double  angle  )  const [inline]

Rotate the point with a given angle around the origin (0,0)

Parameters:
angle The rotation angle.
Returns:
The rotated point.


Member Data Documentation

double BoardLib::Point::x

The point's first coordinate

double BoardLib::Point::y

The point's second coordinate


The documentation for this struct was generated from the following file:
Generated on Mon Dec 17 11:15:52 2007 for Board by  doxygen 1.5.3-20071008