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.
Build an arc length parameterization for some curve. You must supply:
derivativeMagnitude function that returns the magnitude of the first
derivative of the curve at a given parameter valueFind the total arc length of some curve given its arc length parameterization;
ArcLengthParameterization.totalArcLength
parameterizationis equivalent to
ArcLengthParameterization.parameterValueToArcLength 1
parameterizationbut is more efficient.
Convert an arc length to the corresponding parameter value. The given arc length will be clamped to the range [0, length].
Convert a parameter value to the corresponding arc length. The parameter value will be clamped to the range [0, 1].
Contains a mapping from curve parameter value to arc length, and vice versa.