omArray(goog.vec.vec2d.create(), [1, 2]);
    var v1 = goog.vec.vec2d.setFromArray(goog.vec.vec2d.create(), [4, 5]);
    assertEquals(14, goog.vec.vec2d.dot(v0, v1));
    assertEquals(14, goog.vec.vec2d.dot(v1, v0));
  }

  function testDistanceSquared() {
    var v0 = goog.vec.vec2d.setFromValues(goog.vec.vec2d.create(), 1, 2);
    var v1 = goog.vec.vec2d.setFromValues(goog.vec.vec2d.create(), 1, 2);
    assertEquals(0, goog.vec.vec2d.distanceSquared(v0, v1));
    goog.vec.vec2d.setFromValues(v0, 1, 2);
  