Method GetTangentAtKnot
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
GetTangentAtKnot(double)
Gets the direction the spline runs in at a value of its knots.
public GeoVector2 GetTangentAtKnot(double knot)
Parameters
knotdoubleA value of the domain; one outside is taken as the nearer end.
Returns
- GeoVector2
The unit vector along the first derivative; where that is nought, as at a cusp or at an end whose first two control points coincide, along the first higher derivative that is not.
Exceptions
- ArgumentOutOfRangeException
Thrown when the knot value is not a finite number.
- InvalidOperationException
Thrown when every derivative to the degree vanishes there. That is a spline that stands still at that place, as one does along a span whose control points all coincide, a stretch that a spline made from other splines can have; the spline as a whole always moves, since its control points are not all one point.