opensolid/geometry/3.0.1

NOTE: this package is not compatible with Elm 0.19.1

Curve.ArcLengthParameterization

You will likely never need to use this module directly. In the vast majority of cases the individual curve modules such as QuadraticSpline2d should contain all the functionality you need to construct an arc length parameterization and use it to do things like evaluate a curve at evenly-spaced points. This module is primarily for use internally by those curve modules, but may be useful if you want to do some fancy mapping between arc length and curve parameter values.

Constructing

{ maxError : Float
, derivativeMagnitude : ParameterValue -> Float
, maxSecondDerivativeMagnitude : Float
}
-> ArcLengthParameterization

Evaluating

totalArcLength : ArcLengthParameterization -> Float
arcLengthToParameterValue : Float -> ArcLengthParameterization -> Maybe ParameterValue
parameterValueToArcLength : ParameterValue -> ArcLengthParameterization -> Float