minor refactoring for box contains_point? method