code: function(opt) {
  
              opt = opt || {};
              var precision = (opt.precision === undefined) ? this.PRECISION : opt.precision; // opt.precision only used in getSubdivisions() call
              var subdivisions = (opt.subdivisions === undefined) ? this.getSubdivisions({ precision: precision }) : opt.subdivisions;
              // not using localOpt
  
              var length = 0;
              var n = subdivisions.length;
              for (var i = 0; i < n; i++) {
  
                  var currentSubdivision = subdivisions[i];
                  length += currentSubdivision.endpointDistance();
              }
  
              return length;
          }
docs: Returns flattened length of the curve with precision better than `opt.precision`; or using `opt.subdivisions` provided.