public static PointF GetCentreOfTiles(List <CorrelationTile> tiles) { int left = CorrelationTile.GetMostLeftPosition(tiles); int top = CorrelationTile.GetMostTopPosition(tiles); int width = CorrelationTile.GetMostRightPosition(tiles) - left; int height = CorrelationTile.GetMostBottomPosition(tiles) - top; return(new PointF(left + width / 2.0f, top + height / 2.0f)); }
public static int GetHorizontalRangeOfTiles(List <CorrelationTile> tiles) { return(CorrelationTile.GetMostRightPosition(tiles) - CorrelationTile.GetMostLeftPosition(tiles)); }