IsInsideClosedInterval, IsInsideOpenInterval plus test.