Method GetParameterAtPoint
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
GetParameterAtPoint(GeoPoint2)
Gets the normalised parameter, from 0 to 1, of the point of the spline nearest a point, using the default tolerance.
public double GetParameterAtPoint(GeoPoint2 point)
Parameters
pointGeoPoint2The point; it does not have to lie on the spline.
Returns
- double
The share of the domain: 0 at the start and 1 at the end; GetKnotAtPoint(GeoPoint2) gives the knot value.
GetParameterAtPoint(GeoPoint2, Tolerance)
Gets the normalised parameter, from 0 to 1, of the point of the spline nearest a point, within a tolerance.
public double GetParameterAtPoint(GeoPoint2 point, Tolerance tolerance)
Parameters
pointGeoPoint2The point; it does not have to lie on the spline.
toleranceToleranceThe tolerance; not read, since the nearest point takes none.
Returns
- double
The share of the domain: 0 at the start and 1 at the end.