Click or drag to resize

EllipsoidSurfaceCurveFindClosestPointOnCurve Method (Cartographic, Double)

Finds the closest point on the curve from the input point.

Namespace:  AGI.Foundation.Geometry.Shapes
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 20.4.407.0 (20.4.407.0)
Syntax
public virtual Cartographic FindClosestPointOnCurve(
	Cartographic point,
	out double distance
)

Parameters

point
Type: AGI.Foundation.CoordinatesCartographic
The input point. The point will be on the ellipsoid surface at this location.
distance
Type: SystemDouble
The surface distance between the point and the point on the curve.

Return Value

Type: Cartographic
The closest point on the curve.
Remarks
The default implementation is a golden section search on the curve. The built-in types (geodesic, rhumb, and complex) have their own precise algorithms.
See Also