Skip to content

Pos

#include <Geometry.hpp>

Represents a position in 2D space.

Coordinates are in terminal cells, with origin (0, 0) at top-left.

ReturnNameDescription
intxX coordinate (column), 0-based.
intyY coordinate (row), 0-based.

int x = 0

X coordinate (column), 0-based.


int y = 0

Y coordinate (row), 0-based.