I need to look up a value in a "table" where a table can be an array or whatever really.
On paper it looks like this (reduced and generalized):
Size 500 750 1000 1250 1500 (speed)
--------------------------------------------
6x5 0.1 0.5 0.55 0.58 0.8
6x4 0.01 0.1 0.4 0.5 0.9
8x5 0.5 0.9 1.1 1.5 2.0
10x5 1.2 1.5 2.0 2.7 3.0
12x6 2.6 3.0 4.4 5.1 7.0 (pressure)
I need to somehow extract the pressure when I have a variable size and speed.
I right now I have put each row in a separate array, but I would like to avoid a bunch of if else's, but I don't really know a better way. Thanks for the help.