getVectorLength method

dynamic getVectorLength()

Implementation

getVectorLength() {
  var vectorLength = this.components.length;

  for (var c in this.components.split('')) {
    vectorLength = Math.max(vector.indexOf(c) + 1, vectorLength);
  }

  return vectorLength;
}