|
GNode library (C++)
|
Represents a point in a 2D space. More...
#include <point.hpp>
Public Member Functions | |
| Point () | |
| Default constructor that initializes the point to the origin (0,0). | |
| Point (float x, float y) | |
Constructs a Point with specified coordinates. | |
Public Attributes | |
| float | x |
| X-coordinate of the point. | |
| float | y |
| Y-coordinate of the point. | |
Represents a point in a 2D space.
The Point struct contains two floating-point coordinates, x and y, that specify the location of the point in a 2D space. It provides constructors to initialize the point with default or specified coordinates.
|
inline |
Default constructor that initializes the point to the origin (0,0).
|
inline |
Constructs a Point with specified coordinates.
| x | The X-coordinate of the point. |
| y | The Y-coordinate of the point. |
| float gnode::Point::x |
X-coordinate of the point.
| float gnode::Point::y |
Y-coordinate of the point.