Not quite sure what the name for this problem is which makes it hard to find a solution.
I have 2 values like [ 0, 2.5 ] each describing an index for 2 dimensional array