[1, 2], v0);

    goog.vec.vec2d.setFromArray(v1, v0);
    goog.vec.vec2d.scale(v1, 5, v1);
    assertElementsEquals([5, 10], v1);
  }

  function testMagnitudeSquared() {
    var v0 = goog.vec.vec2d.setFromArray(goog.vec.vec2d.create(), [1, 2]);
    assertEquals(5, goog.vec.vec2d.magnitudeSquared(v0));
  }

  function testMagnitude() {
    var v0 = goog.vec.vec2d.setFromArray(goog.vec.vec2d.create(), [1, 2]);
    assertEquals(Math.sqrt(5), goog.vec.vec2d.magnitude(v0));
  }

  function testNormalize() {
  