public static GridDimension toGridDimension(Position position) { int width = position.getBX(); int height = position.getBY(); return new GridDimension(width, height); }
public static GridPoint toGridPoint(Position position) { int x = position.getBX(); int y = position.getBY(); return new GridPoint(x, y); }