HexLinePositionInfo(HexLinePositionInfoType type, int position, int cellPosition) { Type = type; Position = position; CellPosition = cellPosition; Cell = null; }
HexLinePositionInfo(HexLinePositionInfoType type, int position, HexCell cell) { Type = type; Position = position; CellPosition = position - cell.CellSpan.Start; if (CellPosition < 0) throw new ArgumentOutOfRangeException(nameof(position)); Cell = cell; }
HexLinePositionInfo(HexLinePositionInfoType type, int position, HexCell cell) { Type = type; Position = position; CellPosition = position - cell.CellSpan.Start; if (CellPosition < 0) { throw new ArgumentOutOfRangeException(nameof(position)); } Cell = cell; }