Grid To Index

Grid To Index / Index To Grid
Grid to Index and Index to grid are very important functions in JcInventory.

Because jcInventory needs to use an 2D Array to track all the items in the Inventory gui we need a function that can convert a Vector 2D to a 1D index of the ItemSlots Array.

The functions use math functions to make this conversion easy. It enables us to make a Grid based system unique to any other on the Epic market place.

Most functions use an Index input, but with Grid to Index you can easily turn the 2D position of the slot to its index value.