So let's say i have T
, T = 1200
. I also have A
, A
is an array that contains 1000s of entries and these are numerical entries that range from 1000-2000
but does not include an entry for 1200
.
What's the fastest way of finding the nearest neighbour (closest value), let's say we ceil it, so it'll match 1201
, not 1199
in A
.
Note: this will be run on ENTER_FRAME
.
Also note: A
is static.