.Matrix4.applyRotate(m0, pan, 0, 0, 1);

    var m1 = goog.vec.Matrix4.create();
    goog.vec.Matrix4.fromEulerZXZ(m1, roll, tilt, pan);
    assertElementsRoughlyEqual(m0, m1, goog.vec.EPSILON);


    var euler = [0, 0, 0];
    goog.vec.Matrix4.toEulerZXZ(m0, euler);
    // Bring them to their range.
    euler[0] = (euler[0] + Math.PI * 2) % (Math.PI * 2);
    euler[1] = (euler[1] - Math.PI * 2) % (Math.PI * 2);
    euler[2] = (euler[2] + Math.PI * 2) % (Math.PI * 2);
    assertElementsRoughlyEqual([roll, t