Sha256: c2eb07d6c9262b2eae502a77be835a9fff6cb2029379dd5be2d4181dbd52bd33

Contents?: true

Size: 190 Bytes

Versions: 2

Compression:

Stored size: 190 Bytes

Contents

ColorScale.prototype.vectorLength = function (vector) {
  var result = 0;
  for (var i = 0; i < vector.length; i++) {
    result += vector[i] * vector[i];
  }
  return Math.sqrt(result);
};

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails_modular_admin-1.0.0 app/assets/node_modules/jqvmap/src/ColorScale/vectorLength.js
rails_modular_admin-0.4.0 app/assets/node_modules/jqvmap/src/ColorScale/vectorLength.js