Skip to content
Snippets Groups Projects
Commit cc5e6421 authored by Lorenzo Moneta's avatar Lorenzo Moneta
Browse files

fix TQuaternion::GetQAngle

(see https://savannah.cern.ch/bugs/?96380 )


git-svn-id: http://root.cern.ch/svn/root/trunk@45725 27541ba8-7e3a-0410-8455-c3a389f83636
parent 9a6447b7
Branches
Tags
No related merge requests found
......@@ -154,7 +154,7 @@ Double_t TQuaternion::GetQAngle() const {
// Get angle of quaternion (rad)
// N.B : this angle is half of the corresponding rotation angle
if (fRealPart == 0) return 0;
if (fRealPart == 0) return TMath::PiOver2();
Double_t denominator = fVectorPart.Mag();
return atan(denominator/fRealPart);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment