code: @SuppressWarnings({"checkstyle:cyclomaticcomplexity", "checkstyle:npathcomplexity"})
  	@Pure
  	public final Path2d toPath2D(double startPosition, double endPosition) {
  		final Path2d path = new Path2d();
  		toPath2D(path, startPosition, endPosition);
  		return path;
  	}
docs: Replies the Path2D that corresponds to this polyline.
  If <var>startPosition</var> is greater to zero,
  the replied path will be clipped to ignore the part of
  the polyline before the given value.
  If <var>endPosition</var> is lower to the length of the polyline,
  the replied path will be clipped to ignore the part of
  the polyline after the given value.
  
  @param startPosition is the curviline position from which the polyline is drawn.
  @param endPosition is the curviline position to which the polyline is drawn.
  @return the clipped 2D path.
  @since 4.0