isBeforeOrSame method

bool isBeforeOrSame(
  1. Position another
)

Implementation

bool isBeforeOrSame(Position another) {
  return another.y > y || (another.y == y && another.x >= x);
}