Especially the nested comment which borked the compile
Signed-off-by: Keith Packard <keithp@keithp.com>
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;
* = (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() {