An alternative interpretation of paths that is convenient for mathematical operations.
Here, a path is viewed as a list of segments with a start and end point.
Create segments from a path
Convert a list of segments to a path
It is assumed that for every two adjacent segments in the list, the first segment's end point is the second segment's starting point
Get the location at a point on the curve, only defined in the range [0, 1].
The approximate length of a segment
Supply the options for the approximation
minDepth: Minimum recursion depth for calculating the length of arc segments. Default is 10.error: Minimal amount of progress that an recursive step must make. Default is 1.0e-12.
The four types of segments.
For segments, the
xAxisRotatefield is in radians.