GNode library (C++)
Loading...
Searching...
No Matches
gnode::Point Struct Reference

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Point() [1/2]

gnode::Point::Point ( )
inline

Default constructor that initializes the point to the origin (0,0).

◆ Point() [2/2]

gnode::Point::Point ( float  x,
float  y 
)
inline

Constructs a Point with specified coordinates.

Parameters
xThe X-coordinate of the point.
yThe Y-coordinate of the point.

Member Data Documentation

◆ x

float gnode::Point::x

X-coordinate of the point.

◆ y

float gnode::Point::y

Y-coordinate of the point.


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