EllipsoidRhumbLineFindClosestPointOnCurve 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.2.419.0 (24.2.419.0)
Syntax public override Cartographic FindClosestPointOnCurve(
Cartographic point,
out double distance
)
Public Overrides Function FindClosestPointOnCurve (
point As Cartographic,
<OutAttribute> ByRef distance As Double
) As Cartographic
public:
virtual Cartographic FindClosestPointOnCurve(
Cartographic point,
[OutAttribute] double% distance
) override
abstract FindClosestPointOnCurve :
point : Cartographic *
distance : float byref -> Cartographic
override FindClosestPointOnCurve :
point : Cartographic *
distance : float byref -> Cartographic
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:
CartographicThe 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