#include <wit/geometry.h>
Public Member Functions | |
| Point () | |
| Point (const Point &other) | |
| Point (float x, float y) | |
| Point & | operator= (const Point &other) |
Public Attributes | |
| float | x |
| float | y |
The Point class describes a two-dimensional coordinate pair.
Definition at line 6 of file geometry.h.
| wit::Point::Point | ( | ) |
Creates a new Point object at (0, 0).
Definition at line 28 of file geometry.cpp.
| wit::Point::Point | ( | const Point & | other ) |
Creates a new Point object with the same coordinates as other.
Definition at line 36 of file geometry.cpp.
| wit::Point::Point | ( | float | x, |
| float | y | ||
| ) |
Creates a new Point object at (x, y).
Definition at line 44 of file geometry.cpp.
Copies the coordinates of other to this object.
Definition at line 52 of file geometry.cpp.
| float wit::Point::x |
The x coordinate of the point.
Definition at line 13 of file geometry.h.
| float wit::Point::y |
The y coordinate of the point.
Definition at line 13 of file geometry.h.
1.7.2