We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 999333e commit 9ec6ba4Copy full SHA for 9ec6ba4
math/physics/src/TRotation.cxx
@@ -185,6 +185,7 @@ TVector3 class:
185
#include "TRotation.h"
186
#include "TMath.h"
187
#include "TQuaternion.h"
188
+#include <cmath>
189
190
ClassImp(TRotation);
191
@@ -323,7 +324,7 @@ TRotation::TRotation(const TQuaternion & Q) {
323
324
/// Rotate along an axis.
325
326
TRotation & TRotation::Rotate(Double_t a, const TVector3& axis) {
- if (a != 0.0) {
327
+ if (std::fmod(a, 2*M_PI) != 0.) {
328
Double_t ll = axis.Mag();
329
if (ll == 0.0) {
330
Warning("Rotate(angle,axis)"," zero axis");
0 commit comments