rename Placement.isNull to Placement.isIdentity

implement Rotation.isNull and Rotation.isIdentity
This commit is contained in:
wmayer
2017-12-13 16:58:12 +01:00
parent 28f7047bff
commit 25bf33077e
6 changed files with 33 additions and 11 deletions

View File

@@ -658,6 +658,15 @@ void Rotation::getYawPitchRoll(double& y, double& p, double& r) const
r = (r/D_PI)*180;
}
bool Rotation::isIdentity() const
{
return ((this->quat[0] == 0 &&
this->quat[1] == 0 &&
this->quat[2] == 0) &&
(this->quat[3] == 1 ||
this->quat[3] == -1);
}
bool Rotation::isNull() const
{
return (this->quat[0] == 0 &&