Property Length
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
Length
Gets the length of the spline, measured along it.
public double Length { get; }
Property Value
Remarks
The integral of the speed, by Gauss-Legendre of ten points over each span, a span cut in halves wherever the rule over the whole and over its two halves disagree, until they agree to 1E-14 of the length of the span's control polygon, and cut at each place the speed is least, where a curve that turns back has a corner in what is integrated; a rational span whose weights are more than two to one apart is cut first. It is good to a relative 1E-12 and in practice to 1E-15: the circle of radius 100 comes out as 628.31853071796, which is 2 pi times 100. Where the speed falls to nought, at a cusp, it is good to a little less. It is worked out once.