Method GetTangentAtParameter
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
GetTangentAtParameter(double)
Gets the direction the spline runs in at a normalised parameter.
public GeoVector2 GetTangentAtParameter(double parameter)
Parameters
parameterdoubleThe share of the domain, from 0 to 1; one outside is taken as the nearer end.
Returns
- GeoVector2
The unit vector, as GetTangentAtKnot(double) gives it.
Exceptions
- ArgumentOutOfRangeException
Thrown when the parameter is not a finite number.
- InvalidOperationException
Thrown when the spline stands still there: every derivative to the degree vanishes.