Table of Contents

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

point GeoPoint2

The 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

point GeoPoint2

The point; it does not have to lie on the spline.

tolerance Tolerance

The 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.