#include <Point.h>
Public Member Functions | |
Point (double x=0.0, double y=0.0) | |
Point & | rotate (double angle) |
void | get (double &x, double &y) const |
Point | getRotate (double angle) const |
Point & | rotate (double angle, const Point ¢er) |
Point & | getRotate (double angle, const Point ¢er) const |
Point & | operator+= (const Point &other) |
Point & | operator-= (const Point &other) |
Point & | operator *= (double s) |
Point & | operator/= (double s) |
double | norm () const |
Public Attributes | |
double | x |
double | y |
The Point structure.
BoardLib::Point::Point | ( | double | x = 0.0 , |
|
double | y = 0.0 | |||
) | [inline] |
Point & BoardLib::Point::rotate | ( | double | angle | ) | [inline] |
Rotate the point with a given angle around the origin (0,0)
angle | The rotation angle. |
void BoardLib::Point::get | ( | double & | x, | |
double & | y | |||
) | const [inline] |
Get the values of the x and y values.
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)
angle | The rotation angle. |
double BoardLib::Point::x |
The point's first coordinate
double BoardLib::Point::y |
The point's second coordinate