docs: public Point interpolate(double distance) {
          if (distance < 0) {
              return null;
          }
  
          for (LineSegment segment : this.segments) {
              double length = segment.length();
              if (distance <= length) {
                  return segment.pointAlongLineSegment(distance);
              }
              distance -= length;
          }
          return null;
      }