summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-06-27 21:37:50 -0700
committerKeith Packard <keithp@keithp.com>2017-06-27 21:37:50 -0700
commit13abb6739ae9be5a8733724c5d9b3f714f32bea4 (patch)
tree9658273b966ed1469f5235b65c180828279963c1
parent5a174f4a2caae97b5038eb92ab85303e736b7c2e (diff)
altoslib: Fix comments in AltosQuaternion and AltosRotation
Especially the nested comment which borked the compile Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--altoslib/AltosQuaternion.java1
-rw-r--r--altoslib/AltosRotation.java2
2 files changed, 2 insertions, 1 deletions
diff --git a/altoslib/AltosQuaternion.java b/altoslib/AltosQuaternion.java
index 9217fc41..6d6bc12c 100644
--- a/altoslib/AltosQuaternion.java
+++ b/altoslib/AltosQuaternion.java
@@ -153,6 +153,7 @@ public class AltosQuaternion {
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;
diff --git a/altoslib/AltosRotation.java b/altoslib/AltosRotation.java
index 305f932a..eec8c529 100644
--- a/altoslib/AltosRotation.java
+++ b/altoslib/AltosRotation.java
@@ -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²
*
- * tilt = acos(rot); /* in radians */
+ * tilt = acos(rot) (in radians)
*/
public double tilt() {