isBeforeOrSame method

bool isBeforeOrSame(
  1. CellOffset other
)

Whether this position comes before other or is the same.

Implementation

bool isBeforeOrSame(CellOffset other) {
  return y < other.y || (y == other.y && x <= other.x);
}