code: function() {
          var length = 0.0;
          for (var i=0, len=this.components.length; i<len; i++) {
              length += this.components[i].getLength();
          }
          return length;
      }
docs: APIMethod: getLength
  Calculate the length of this geometry
  
  Returns:
  {Float} The length of the geometry