API Documentation
Public Member Functions | Public Attributes | List of all members
nkMaths::Point Class Reference

Represents a 2D Point. More...

Public Member Functions

 Point () noexcept
 
 Point (float x, float y) noexcept
 

Public Attributes

float _x
 The x component of the point position.
 
float _y
 The y component of the point position.
 

Detailed Description

Represents a 2D Point.

Constructor & Destructor Documentation

◆ Point() [1/2]

nkMaths::Point::Point ( )
noexcept

Default constructor. Defaults all members to 0.

◆ Point() [2/2]

nkMaths::Point::Point ( float  x,
float  y 
)
noexcept

Constructor.

Parameters
xThe x component of the point's position.
yThe y component of the point's position.

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