X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=altoslib%2FAltosRotation.java;h=85e213b25f5a0ef0700c3151b6723ee8ff34b925;hb=3ed101d634968666cd3ee2d8c49737970caf406b;hp=7bcea4874095e4d8c83610ffc23c71b07e4dfc5e;hpb=52149fd81df45f37f5097850795f290f463c43ef;p=fw%2Faltos diff --git a/altoslib/AltosRotation.java b/altoslib/AltosRotation.java index 7bcea487..85e213b2 100644 --- a/altoslib/AltosRotation.java +++ b/altoslib/AltosRotation.java @@ -97,7 +97,7 @@ public class AltosRotation extends AltosQuaternion { double z, int pad_orientation) { AltosQuaternion orient = AltosQuaternion.vector(x, y, z).normalize(); - double sky = pad_orientation == 0 ? 1 : -1; + double sky = (pad_orientation & 1) == 0 ? 1 : -1; AltosQuaternion up = new AltosQuaternion(0, 0, 0, sky); rotation = up.vectors_to_rotation(orient); }