Tolerance.is_angles_close
- Tolerance.is_angles_close(a, b, tol=None)[source]
Check if two angles are close enough to be considered equal.
- Parameters:
- afloat
The first angle in radians.
- bfloat
The second angle in radians.
- tolfloat, optional
The absolute tolerance. Default is
None
, in which caseself.angular
is used.
- Returns:
- bool
True
if the angles are close enough to be considered equal.False
otherwise.
Examples
>>> tol = Tolerance() >>> tol.is_angles_close(0.0, 1e-07) True >>> tol.is_angles_close(0.0, 1e-05) False