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.angular
is used.
- Returns:
- bool
True
if the angle is small enough to be considered zero.False
otherwise.
Examples
>>> tol = Tolerance() >>> tol.is_angle_zero(1e-07) True >>> tol.is_angle_zero(1e-05) False