Javascript Array norm()

Description

Javascript Array norm()

Array.prototype.norm = function() {
  return Math.sqrt(this[0]*this[0] + this[1]*this[1])
}



PreviousNext

Related