Click or drag to resize

EllipsoidGeodesicFindClosestPointOnCurve 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: 24.3.420.0 (24.3.420.0)
Syntax
public override 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