Click or drag to resize

MathUtilClosestPoint Method

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Calculates the closest point on the line AB to the point given.

Namespace:  Telogis.GeoBase
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public static LatLon ClosestPoint(
	LatLon query,
	LatLon A,
	LatLon B
)

Parameters

query
Type: Telogis.GeoBaseLatLon
The point to find the closest point to.
A
Type: Telogis.GeoBaseLatLon
The point at the beginning of the line.
B
Type: Telogis.GeoBaseLatLon
The point at the end of the line.

Return Value

Type: LatLon
The point between A and B that is closest to query.
Remarks
See QuickClosestPointOnLine Overload for a faster implementation of closest point.
See Also