extracted method for determining whether a point is inside a bounding volume