Base: add overloaded method isIdentity() to Rotation and Placement that accepts a tolerance

This commit is contained in:
wmayer
2023-01-03 10:54:47 +01:00
parent 2f3baa0336
commit bb566c7777
8 changed files with 57 additions and 37 deletions

View File

@@ -160,8 +160,10 @@ Returns True if all values in the quaternion representation are zero.</UserDocu>
</Methode>
<Methode Name="isIdentity" Const="true">
<Documentation>
<UserDocu>isIdentity() -> bool\n
Returns True if the rotation equals the 4D identity matrix.</UserDocu>
<UserDocu>isIdentity(tol=0) -> bool\n
Returns True if the rotation equals the 4D identity matrix.
tol : float\n Tolerance used to check for identity.
If tol is negative or zero, no tolerance is used.</UserDocu>
</Documentation>
</Methode>
<Attribute Name="Q" ReadOnly="false">