Method GetKnotAtPoint
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
GetKnotAtPoint(GeoPoint2)
Gets the value of the knots at the point of the spline nearest a point.
public double GetKnotAtPoint(GeoPoint2 point)
Parameters
pointGeoPoint2The 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: a point inside a loop of the curve, a point on the axis of a symmetric one, the centre of an arc, a point at a cusp, all give the nearest of them, to rounding. A circle as FromCircle(GeoCircle2) makes it has every point equally near its centre, and answers the start.