src/Vector.js
function _magnitudeOf(values) {
  var result = 0;

  for (var i = 0; i < values.length; i++)
      result += values[i] * values[i];

  return Math.sqrt(result);
}
function _magnitudeOf(values) {
  var result = 0;

  for (var i = 0; i < values.length; i++)
      result += values[i] * values[i];

  return Math.sqrt(result);
}
function _magnitudeOf ( values ) { var result = 0 ; for ( var i = 0 ; i < values . length ; i ++ ) result += values [ i ] * values [ i ] ; return Math . sqrt ( result ) ; }
Returns the magnitude of the vector

Given v = (x1, x2, ... xN)
magnitude is defined as n = x1 * x1 + x2 * x2 + ... + xN * xN

@param {Array} values: values of the vector
@returns {Number} maginitude
Returns the magnitude of the vector