Functions to test if a point is outside ranges, namely useful for 3D/2D scenes that may have reversed bounds