Mutable demo
Point2D Class Reference

Class containing a point in 2D. More...

#include <polygon.h>

Public Member Functions

 Point2D ()
 Constructor without parameters. Defines the point to the origin (0.0). More...
 
 Point2D (float x, float y)
 Constructor. More...
 
float GetX () const
 Getter. More...
 
float GetY () const
 Getter. More...
 

Detailed Description

Class containing a point in 2D.

Definition at line 9 of file polygon.h.

Constructor & Destructor Documentation

◆ Point2D() [1/2]

Point2D::Point2D ( )
inline

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]xcoordinate in x direction
[in]ycoordinate in y direction

Definition at line 22 of file polygon.h.

Member Function Documentation

◆ GetX()

float Point2D::GetX ( ) const
inline

Getter.

Returns
x coordinate

Definition at line 26 of file polygon.h.

Here is the caller graph for this function:

◆ GetY()

float Point2D::GetY ( ) const
inline

Getter.

Returns
y coordinate

Definition at line 30 of file polygon.h.

Here is the caller graph for this function:

The documentation for this class was generated from the following file: