function ret = isPointWithinLimits(pt, limits)
ret = pt(1) > limits(1) && pt(1) < limits(2) && ...
      pt(2) > limits(3) && pt(2) < limits(4) && ...
      pt(3) > limits(5) && pt(3) < limits(6);
