Click or drag to resize

MathUtilDistanceFromPointToLine Method

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
The great circle distance from a point to a line lineStart->lineEnd in the given units.

Namespace:  Telogis.GeoBase
Assembly:  geobase.net (in geobase.net.dll) Version: 4.98.0.0
Syntax
public static double DistanceFromPointToLine(
	LatLon point,
	LatLon lineStart,
	LatLon lineEnd,
	DistanceUnit units
)

Parameters

point
Type: Telogis.GeoBaseLatLon
The point to measure distance from.
lineStart
Type: Telogis.GeoBaseLatLon
The start point of the line.
lineEnd
Type: Telogis.GeoBaseLatLon
The end point of the line.
units
Type: Telogis.GeoBaseDistanceUnit
The units in which the distance will be returned.

Return Value

Type: Double
The distance in the given units between point and lineStart->lineEnd.
See Also