 0, 0, 1],
        m0, goog.vec.EPSILON);

    goog.vec.Matrix4.applyRotate(m0, -Math.PI / 4, 0, 0, 1);
    assertElementsRoughlyEqual(
        [0.7071068, 0.7071068, 0, 0,
         -0.7071068, 0.7071068, 0, 0,
         0, 0, 1, 0,
         0, 0, 0, 1],
        m0, goog.vec.EPSILON);
  }

  function testMakeFrustum() {
    var m0 = goog.vec.Matrix4.create();
    goog.vec.Matrix4.makeFrustum(m0, -1, 2, -2, 1, .1, 1.1);
    assertElementsRoughlyEqual(
        [0.06666666, 0, 0, 0,
         0, 0.06666666, 0, 0