rectTo

infix fun <T : ForInventory> SingleInventorySlot<out T>.rectTo(slot: SingleInventorySlot<out T>): InventorySlotRange<T>

This range contains all slots inside of a thought rectangle with the two given slots as two opposite corners of the rectangle.