Essentia  2.1-beta5-dev
Position Class Reference

#include <asciidag.h>

Public Member Functions

 Position (int x_, int y_)
 
Position operator+ (const Position &other) const
 
bool operator== (const Position &other) const
 

Public Attributes

int x
 
int y
 

Detailed Description

Represents a position in an integer 2D plane.

Constructor & Destructor Documentation

◆ Position()

Position ( int  x_,
int  y_ 
)
inline

Referenced by Position::operator+().

Member Function Documentation

◆ operator+()

Position operator+ ( const Position other) const
inline

◆ operator==()

bool operator== ( const Position other) const
inline

References Position::x, and Position::y.

Member Data Documentation

◆ x

◆ y


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