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

@@ -144,9 +144,11 @@ t : float\n Parameter of the path. t=0 returns this placement, t=1 returns `p
</Methode>
<Methode Name="isIdentity" Const="true">
<Documentation>
<UserDocu>isIdentity() -> bool\n
<UserDocu>isIdentity([tol=0.0]) -> bool\n
Returns True if the placement has no displacement and no rotation.
Matrix representation is the 4D identity matrix.</UserDocu>
Matrix representation is 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>
<Methode Name="isSame" Const="true">