MathUtilDistanceFromPointToLine Method | |
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.99.0.0
Syntax public static double DistanceFromPointToLine(
LatLon point,
LatLon lineStart,
LatLon lineEnd,
DistanceUnit units
)
Public Shared Function DistanceFromPointToLine (
point As LatLon,
lineStart As LatLon,
lineEnd As LatLon,
units As DistanceUnit
) As Double
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:
DoubleThe distance in the given units between point and lineStart->lineEnd.
See Also