Replace the `atol` parameter with a cap on 1 minus the cosine of the angle.
Replace the
atolparameter with a cap on 1 minus the cosine of the angle.