MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / isIdentity

Method isIdentity

src/Base/Rotation.cpp:798–804  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

796}
797
798bool Rotation::isIdentity() const
799{
800 return (
801 (this->quat[0] == 0.0 && this->quat[1] == 0.0 && this->quat[2] == 0.0)
802 && (this->quat[3] == 1.0 || this->quat[3] == -1.0)
803 );
804}
805
806bool Rotation::isIdentity(double tol) const
807{

Callers 2

TESTFunction · 0.45
TESTFunction · 0.45

Calls 2

RotationClass · 0.70
isSameFunction · 0.50

Tested by

no test coverage detected