Method GetKnotAtPoint
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
GetKnotAtPoint(GeoPoint3)
Gets the value of the knots at the point of the spline nearest a point.
public double GetKnotAtPoint(GeoPoint3 point)
Parameters
pointGeoPoint3The point; it does not have to lie on the spline.
Returns
- double
A value of the domain, from DomainStart to DomainEnd: the knot value, which GetPointAtKnot(double) turns back into the point. Where two points of the spline are equally near, the lower one.
Remarks
The nearest point is a point where the spline stops coming nearer, or an end. On each span that is a root of a polynomial in Bernstein form, and all of them are found, to rounding.