Table of Contents

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

knot double

A value of the domain; one outside is taken as the nearer end.

Returns

double

Never negative, since in space a curve has no left or right to turn to: the circle of radius 100 has 0.01 everywhere, and a straight run has nought.

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.