Click or drag to resize

MathUtilQuickDistanceFromPointToLine Method

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Distance from point to line start->end using a Pythagorean approximation.

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

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 that the distance will be returned in.
interpolationConstant
Type: SystemDouble
The interpolation constant for the point along the line start->end where point is closest.

Return Value

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