Tolerance.is_angle_zero
- Tolerance.is_angle_zero(a, tol=None)[source]
Check if an angle is close enough to zero to be considered zero.
- Parameters:
- afloat
The angle in radians.
- tolfloat, optional
The absolute tolerance. Default is
None, in which caseself.angularis used.
- Returns:
- bool
Trueif the angle is small enough to be considered zero.Falseotherwise.
Examples
>>> tol = Tolerance() >>> tol.is_zero_angle(1e-07) True >>> tol.is_zero_angle(1e-05) False