public static Quaternion FastFullAngles(Quaternion use, float yaw, float pitch, float roll) {
        float angle;
        float sinRoll, sinPitch, sinYaw, cosRoll, cosPitch, cosYaw;
        angle = roll * 0.5f;
        sinPitch = (float)Math.sin(angle);
        cosPitch = (float)Math.cos(angle);
        angle = yaw * 0.5f;
        sinRoll = (float)Math.sin(angle);
        cosRoll = (float)Math.cos(angle);
        angle = pitch * 0.5f;
        sinYaw = (float)Math.sin(angle);
        cosYaw = (float)Math.cos(angle);

        // variables used to reduce multiplication calls.
        float cosRollXcosPitch = cosRoll * cosPitch;
        float sinRollXsinPitch = sinRoll * sinPitch;
        float cosRollXsinPitch = cosRoll * sinPitch;
        float sinRollXcosPitch = sinRoll * cosPitch;

        use.set((cosRollXcosPitch * sinYaw + sinRollXsinPitch * cosYaw),
                (sinRollXcosPitch * cosYaw + cosRollXsinPitch * sinYaw),
                (cosRollXsinPitch * cosYaw - sinRollXcosPitch * sinYaw),
                (cosRollXcosPitch * cosYaw - sinRollXsinPitch * sinYaw));

        return use;     
    }
A private constructor to inhibit instantiation of this class.
jme3-vr/src/main/java/com/jme3/util/VRUtil.java