Added helper function for calculating if a point is inside an AABB.