Method GetParameterAtDistance
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
GetParameterAtDistance(double)
Gets the normalised parameter at which the spline has run a length from its start.
public double GetParameterAtDistance(double distance)
Parameters
distancedoubleThe length along the spline; nought or less gives 0 and the whole Length or more gives 1.
Returns
- double
The share of the domain, from 0 to 1, found by Newton's method on the integral of the speed, kept inside a bracket: the length from the start to the point at it is the length asked for to a relative 4E-14 of its span.
Exceptions
- ArgumentOutOfRangeException
Thrown when the distance is not a finite number.