altoslib: Fix comments in AltosQuaternion and AltosRotation
authorKeith Packard <keithp@keithp.com>
Wed, 28 Jun 2017 04:37:50 +0000 (21:37 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 28 Jun 2017 04:37:50 +0000 (21:37 -0700)
Especially the nested comment which borked the compile

Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib/AltosQuaternion.java
altoslib/AltosRotation.java

index 9217fc4159337c1af57a6a29f483b993fd468b2e..6d6bc12c1cf434c01357d4ea3e011addb998c1af 100644 (file)
@@ -153,6 +153,7 @@ public class AltosQuaternion {
 
        static public AltosQuaternion euler(double x, double y, double z) {
 
 
        static public AltosQuaternion euler(double x, double y, double z) {
 
+               /* Halve the euler angles */
                x = x / 2.0;
                y = y / 2.0;
                z = z / 2.0;
                x = x / 2.0;
                y = y / 2.0;
                z = z / 2.0;
index 305f932a0330f158fc363d0f140fe285b0facd6a..eec8c5296fd8956ba4f89f35b382c8bdc832cd2f 100644 (file)
@@ -40,7 +40,7 @@ public class AltosRotation extends AltosQuaternion {
         *     = (a.z * -a.z) + (-a.y * -a.y) - (a.x * -a.x) + (-a.r * a.r)
         *     = -a.z² + a.y² + a.x² - a.r²
         *
         *     = (a.z * -a.z) + (-a.y * -a.y) - (a.x * -a.x) + (-a.r * a.r)
         *     = -a.z² + a.y² + a.x² - a.r²
         *
-        * tilt = acos(rot); /* in radians */
+        * tilt = acos(rot)  (in radians)
         */
 
        public double tilt() {
         */
 
        public double tilt() {