private Vector2DF GetPosition(int index) { var x = index % LineCapacity; var y = index / LineCapacity; var offset = new Vector2DF(x, y); if (Orientation == Orientation.Vertical) { offset = offset.ExchangeXY(); } return offset * ItemSpan; }
private Vector2DF GetPosition(int index) { var x = index % LineCapacity; var y = index / LineCapacity; var offset = new Vector2DF(x, y); if (Orientation == Orientation.Vertical) { offset = offset.ExchangeXY(); } return offset * ItemSpan; }