--- title: rectTo - --- //[KSpigot](../index.md)/[net.axay.kspigot.inventory](index.md)/[rectTo](rect-to.md) # rectTo [jvm] Brief description This range contains all slots inside of a thought rectangle with the two given slots as two opposite corners of the rectangle. Content infix fun <[T](rect-to.md) : [ForInventory](-for-inventory/index.md)> [SingleInventorySlot](-single-inventory-slot/index.md).[rectTo](rect-to.md)(slot: [SingleInventorySlot](-single-inventory-slot/index.md)): [InventorySlotRange](-inventory-slot-range/index.md)<[T](rect-to.md)>