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 7cbecd46c7
commit f039789d0b
8 changed files with 57 additions and 37 deletions

View File

@@ -97,6 +97,11 @@ bool Placement::isIdentity() const
return none;
}
bool Placement::isIdentity(double tol) const
{
return isSame(Placement(), tol);
}
bool Placement::isSame(const Placement& p) const
{
return this->_rot.isSame(p._rot) &&