tileCenterInGrid method

  1. @override
Point<double> tileCenterInGrid(
  1. Point<int> tile
)
override

Implementation

@override
Point<double> tileCenterInGrid(Point<int> tile) {
  final sh = _pShift(tile);
  final off = _fromShift(ShiftPoint(
    0.5,
    sh % 2 == 1 ? 1.0 : 0.5,
  ));

  return tile.cast<double>() + off;
}