Class containing a point in 2D.
More...
#include <polygon.h>
Class containing a point in 2D.
Definition at line 9 of file polygon.h.
◆ Point2D() [1/2]
Constructor without parameters. Defines the point to the origin (0.0).
Definition at line 15 of file polygon.h.
◆ Point2D() [2/2]
Point2D::Point2D |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
[in] | x | coordinate in x direction |
[in] | y | coordinate in y direction |
Definition at line 22 of file polygon.h.
◆ GetX()
float Point2D::GetX |
( |
| ) |
const |
|
inline |
Getter.
- Returns
- x coordinate
Definition at line 26 of file polygon.h.
◆ GetY()
float Point2D::GetY |
( |
| ) |
const |
|
inline |
Getter.
- Returns
- y coordinate
Definition at line 30 of file polygon.h.
The documentation for this class was generated from the following file: