Ember
Loading...
Searching...
No Matches
EmberCore::Point Struct Reference

2D point with integer coordinates More...

#include <Geometry.h>

Public Member Functions

 Point ()=default
 Point (int x, int y)
bool operator== (const Point &other) const
bool operator!= (const Point &other) const

Public Attributes

int x = 0
int y = 0

Detailed Description

2D point with integer coordinates

Definition at line 8 of file Geometry.h.

Constructor & Destructor Documentation

◆ Point() [1/2]

EmberCore::Point::Point ( )
default

◆ Point() [2/2]

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

Definition at line 13 of file Geometry.h.

Member Function Documentation

◆ operator!=()

bool EmberCore::Point::operator!= ( const Point & other) const
inline

Definition at line 17 of file Geometry.h.

◆ operator==()

bool EmberCore::Point::operator== ( const Point & other) const
inline

Definition at line 15 of file Geometry.h.

Member Data Documentation

◆ x

int EmberCore::Point::x = 0

Definition at line 9 of file Geometry.h.

◆ y

int EmberCore::Point::y = 0

Definition at line 10 of file Geometry.h.


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