+ fix bug in Rotation::normalize()
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5155 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
@@ -244,10 +244,12 @@ void Rotation::normalize()
|
||||
this->quat[1]*this->quat[1]+
|
||||
this->quat[2]*this->quat[2]+
|
||||
this->quat[3]*this->quat[3]);
|
||||
this->quat[0] /= len;
|
||||
this->quat[1] /= len;
|
||||
this->quat[2] /= len;
|
||||
this->quat[3] /= len;
|
||||
if (len != 0) {
|
||||
this->quat[0] /= len;
|
||||
this->quat[1] /= len;
|
||||
this->quat[2] /= len;
|
||||
this->quat[3] /= len;
|
||||
}
|
||||
}
|
||||
|
||||
Rotation & Rotation::invert(void)
|
||||
|
||||
Reference in New Issue
Block a user