Math: Range Compare
Nathan (contact me)
This class extracts a comparison value, a mid value (or static value), and a range value.
The class then returns -1 if the comparison value is less than the mid value + the range value but not greater than the mid value - the range value.
0 is return if the comparison value falls within the the mid value +/- the range value.
1 is returned if the comparison value is greater than the mid value + range.
Click here for detailed information about this class on phpclasses.org