geometry.basic_utils.safe_arccos

geometry.basic_utils.safe_arccos = <function safe_arccos>[source]

Returns the arcosine of x, clipped between -1 and 1.

Use this when you know x is a cosine, but it might be slightly over 1 or below -1 due to numerical errors.