lerp static method

Linear interpolation of two TileIndexs.

Implementation

static TileIndex lerp(TileIndex a, TileIndex b, double t) {
  final x = l.lerp(a.x, b.x, t);
  final y = l.lerp(a.y, b.y, t);

  return TileIndex(x, y);
}