summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/rotation.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-09-13 14:09:08 +0200
committerStanislaw Halik <sthalik@misaki.pl>2014-09-13 14:09:08 +0200
commitd4dd9675276093817756187c04d89f10da2df02e (patch)
tree3fefb989b5eb7cbacb39e242ecb05780dea7ff13 /facetracknoir/rotation.h
parent96e5dcb54b932d65c6d3bf9e9364226da21486ee (diff)
nix comment cancer
Diffstat (limited to 'facetracknoir/rotation.h')
-rw-r--r--facetracknoir/rotation.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/facetracknoir/rotation.h b/facetracknoir/rotation.h
index 22f35abb..d40fb6cf 100644
--- a/facetracknoir/rotation.h
+++ b/facetracknoir/rotation.h
@@ -5,10 +5,9 @@
* copyright notice and this permission notice appear in all copies.
*/
-#ifndef ROTATION_H
-#define ROTATION_H
+#pragma once
#include <cmath>
-// ----------------------------------------------------------------------------
+
class RotationType {
public:
@@ -16,7 +15,7 @@ public:
RotationType(double yaw, double pitch, double roll) { fromEuler(yaw, pitch, roll); }
RotationType(double a, double b, double c, double d) : a(a),b(b),c(c),d(d) {}
- RotationType inv(){ // inverse
+ RotationType inv(){
return RotationType(a,-b,-c, -d);
}
@@ -58,7 +57,3 @@ public:
protected:
double a,b,c,d; // quaternion coefficients
};
-
-
-
-#endif //ROTATION_H