* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
-package org.altusmetrum.altoslib_13;
+package org.altusmetrum.altoslib_14;
public class AltosRotation extends AltosQuaternion {
private AltosQuaternion rotation;
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);
}