Method GetCurvatureAtParameter
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
GetCurvatureAtParameter(double)
Gets the curvature of the spline at a normalised parameter: how fast its direction turns for each unit of length.
public double GetCurvatureAtParameter(double parameter)
Parameters
parameterdoubleThe share of the domain, from 0 to 1; one outside is taken as the nearer end.
Returns
- double
The curvature, as GetCurvatureAtKnot(double) gives it.
Exceptions
- ArgumentOutOfRangeException
Thrown when the parameter is not a finite number.
- InvalidOperationException
Thrown when the spline stands still there, where it has no direction to turn.