StuBS
Point Struct Reference

Coordinate on the graphic screen. More...

#include <graphics/primitives.h>

Public Member Functions

 Point ()
 Default Constructor.
 Point (int x, int y)
 Constructor.
Point operator+ (const Point &that) const
 Summation of two points.
Pointoperator+= (const Point &that)
 Assignment summation of two points.
Point operator- (const Point &that) const
 Difference of two points.
Pointoperator-= (const Point &that)
 Assignment difference of two points.

Public Attributes

int x
 X Position.
int y
 X Position.

Detailed Description

Coordinate on the graphic screen.

Constructor & Destructor Documentation

◆ Point() [1/2]

Point::Point ( )
inline

Default Constructor.

Initializing the point to the initial position (0, 0)

◆ Point() [2/2]

Point::Point ( int x,
int y )
inline

Constructor.

x X Position

y Y Position


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