Skip to content
Snippets Groups Projects
Commit 7c77d8ec authored by Rene Brun's avatar Rene Brun
Browse files

From Eric Anciant:

Fix an incoherency in the TQuaternion::getRXYZ functions.


git-svn-id: http://root.cern.ch/svn/root/trunk@21469 27541ba8-7e3a-0410-8455-c3a389f83636
parent d9241644
No related branches found
No related tags found
No related merge requests found
...@@ -127,13 +127,13 @@ inline TQuaternion& TQuaternion::SetRV(Double_t r, TVector3& vect) { ...@@ -127,13 +127,13 @@ inline TQuaternion& TQuaternion::SetRV(Double_t r, TVector3& vect) {
} }
inline void TQuaternion::GetRXYZ(Double_t *carray) const { inline void TQuaternion::GetRXYZ(Double_t *carray) const {
fVectorPart.GetXYZ(carray); fVectorPart.GetXYZ(carray+1);
carray[3] = fRealPart; carray[0] = fRealPart;
} }
inline void TQuaternion::GetRXYZ(Float_t *carray) const { inline void TQuaternion::GetRXYZ(Float_t *carray) const {
fVectorPart.GetXYZ(carray); fVectorPart.GetXYZ(carray+1);
carray[3] = (Float_t) fRealPart; carray[0] = (Float_t) fRealPart;
} }
inline Double_t & TQuaternion::operator[] (int i) { return operator()(i); } inline Double_t & TQuaternion::operator[] (int i) { return operator()(i); }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment