示例#1
0
		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;
		}