Table of Contents

Method GetDerivativeAtKnot

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

GetDerivativeAtKnot(double, int)

Gets a derivative of the spline at a value of its knots, taken with respect to the knot value.

public GeoVector2 GetDerivativeAtKnot(double knot, int order)

Parameters

knot double

A value of the domain; one outside is taken as the nearer end. At a knot where the spline is not smooth the derivative after the knot is given, and at the end of the domain the one before it.

order int

Which derivative, from 1 (the velocity) to 25 (more than the degree gives nought for a spline that is not rational).

Returns

GeoVector2

The derivative as a vector. Its length depends on the domain: the spline over [0, 2] runs half as fast as the same one over [0, 1].

Exceptions

ArgumentOutOfRangeException

Thrown when the knot value is not a finite number or the order is outside 1 to 25.