Method GetCurvatureAtKnot
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
GetCurvatureAtKnot(double)
Gets the curvature of the spline at a value of its knots: how fast its direction turns for each unit of length, which is the reciprocal of the radius of the circle that fits it there.
public double GetCurvatureAtKnot(double knot)
Parameters
knotdoubleA value of the domain; one outside is taken as the nearer end.
Returns
- double
Positive where the spline turns counter-clockwise, negative where it turns clockwise, nought where it runs straight: the circle of radius 100 run counter-clockwise has 0.01 everywhere.
Exceptions
- ArgumentOutOfRangeException
Thrown when the knot value is not a finite number.
- InvalidOperationException
Thrown when the spline stands still at the knot value, where it has no direction to turn.