From: Keith Packard Date: Wed, 28 Jun 2017 04:37:50 +0000 (-0700) Subject: altoslib: Fix comments in AltosQuaternion and AltosRotation X-Git-Tag: 1.8~21 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=13abb6739ae9be5a8733724c5d9b3f714f32bea4;ds=sidebyside altoslib: Fix comments in AltosQuaternion and AltosRotation Especially the nested comment which borked the compile Signed-off-by: Keith Packard --- 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() {