Method GetParameterAtPoint
- Namespace
- GeometryHelper.Core
- Assembly
- GeometryHelper.dll
GetParameterAtPoint(GeoLine2, GeoPoint2)
Projects a point onto the infinite line containing the segment and gets the parameter value t using default tolerance. t=0 corresponds to StartPoint, t=1 corresponds to EndPoint.
public static double GetParameterAtPoint(GeoLine2 line, GeoPoint2 point)
Parameters
Returns
- double
The parameter value t along the line.
GetParameterAtPoint(GeoLine2, GeoPoint2, Tolerance)
Projects a point onto the infinite line containing the segment and gets the parameter value t within tolerance. t=0 corresponds to StartPoint, t=1 corresponds to EndPoint.
public static double GetParameterAtPoint(GeoLine2 line, GeoPoint2 point, Tolerance tolerance)
Parameters
lineGeoLine2The line segment.
pointGeoPoint2The target point.
toleranceToleranceThe tolerance used to detect a degenerate segment.
Returns
- double
The parameter value t along the line, or 0 for a degenerate segment.
GetParameterAtPoint(GeoCircle2, GeoPoint2)
Gets the normalized parameter of the point on a circle closest to the supplied point. The point does not have to lie on the circumference; only its direction from the centre matters.
public static double GetParameterAtPoint(GeoCircle2 circle, GeoPoint2 point)
Parameters
circleGeoCircle2pointGeoPoint2
Returns
GetParameterAtPoint(GeoRectangle2, GeoPoint2)
Gets the normalized parameter of the point on the boundary of a rectangle closest to the supplied point.
public static double GetParameterAtPoint(GeoRectangle2 rect, GeoPoint2 point)
Parameters
rectGeoRectangle2pointGeoPoint2
Returns
GetParameterAtPoint(GeoPolygon2, GeoPoint2)
Gets the normalized parameter of the point on the boundary of a polygon closest to the supplied point.
public static double GetParameterAtPoint(GeoPolygon2 poly, GeoPoint2 point)
Parameters
polyGeoPolygon2pointGeoPoint2
Returns
GetParameterAtPoint(GeoPolyline2, GeoPoint2)
Gets the normalized parameter of the point on a polyline closest to the supplied point.
public static double GetParameterAtPoint(GeoPolyline2 polyline, GeoPoint2 point)
Parameters
polylineGeoPolyline2pointGeoPoint2
Returns
GetParameterAtPoint(GeoPolylineArc2, GeoPoint2)
Gets the normalized parameter of the point of a chain that may curve nearest a point.
public static double GetParameterAtPoint(GeoPolylineArc2 chain, GeoPoint2 point)
Parameters
chainGeoPolylineArc2pointGeoPoint2
Returns
Exceptions
- ArgumentNullException
Thrown when the chain is null.
GetParameterAtPoint(GeoPolylineArc2, GeoPoint2, Tolerance)
Gets the normalized parameter of the point of a chain that may curve nearest a point, within a tolerance.
public static double GetParameterAtPoint(GeoPolylineArc2 chain, GeoPoint2 point, Tolerance tolerance)
Parameters
chainGeoPolylineArc2pointGeoPoint2toleranceTolerance
Returns
Exceptions
- ArgumentNullException
Thrown when the chain is null.
GetParameterAtPoint(GeoPolygonArc2, GeoPoint2)
Gets the normalized parameter of the point of a loop that may curve nearest a point.
public static double GetParameterAtPoint(GeoPolygonArc2 loop, GeoPoint2 point)
Parameters
loopGeoPolygonArc2pointGeoPoint2
Returns
Exceptions
- ArgumentNullException
Thrown when the loop is null.
GetParameterAtPoint(GeoPolygonArc2, GeoPoint2, Tolerance)
Gets the normalized parameter of the point of a loop that may curve nearest a point, within a tolerance.
public static double GetParameterAtPoint(GeoPolygonArc2 loop, GeoPoint2 point, Tolerance tolerance)
Parameters
loopGeoPolygonArc2pointGeoPoint2toleranceTolerance
Returns
Exceptions
- ArgumentNullException
Thrown when the loop is null.