packages/cafeteria/app/external/sylvester/scripts/sylvester-0.1.3.js
function(obj) {
    if (obj.anchor) { return obj.distanceFrom(this); }
    var V = obj.elements || obj;
    if (V.length != this.elements.length) { return null; }
    var sum = 0, part;
    this.each(function(x, i) {
      part = x - V[i-1];
      sum += part * part;
    });
    return Math.sqrt(sum);
  }
function(obj) {
    if (obj.anchor) { return obj.distanceFrom(this); }
    var V = obj.elements || obj;
    if (V.length != this.elements.length) { return null; }
    var sum = 0, part;
    this.each(function(x, i) {
      part = x - V[i-1];
      sum += part * part;
    });
    return Math.sqrt(sum);
  }
function ( obj ) { if ( obj . anchor ) { return obj . distanceFrom ( this ) ; } var V = obj . elements || obj ; if ( V . length != this . elements . length ) { return null ; } var sum = 0 , part ; this . each ( function ( x , i ) { part = x - V [ i - 1 ] ; sum += part * part ; } ) ; return Math . sqrt ( sum ) ; }
Returns the vector's distance from the argument, when considered as a point in space
Returns the vector s distance from the argument when considered as a point in space