code: function(ratio, opt) {
  
              var segments = this.segments;
              var numSegments = segments.length;
              if (numSegments === 0) return null; // if segments is an empty array
  
              if (ratio <= 0) return this.start.clone();
              if (ratio >= 1) return this.end.clone();
  
              opt = opt || {};
              var precision = (opt.precision === undefined) ? this.PRECISION : opt.precision;
              var segmentSubdivisions = (opt.segmentSubdivisions === undefined) ? this.getSegmentSubdivisions({ precision: precision }) : opt.segmentSubdivisions;
              var localOpt = { precision: precision, segmentSubdivisions: segmentSubdivisions };
  
              var pathLength = this.length(localOpt);
              var length = pathLength * ratio;
  
              return this.pointAtLength(length, localOpt);
          }
docs: Returns point at requested `ratio` between 0 and 1, with precision better than requested `opt.precision`; optionally using `opt.segmentSubdivisions` provided.