Print this page
MathUtilDistance Method (IListLatLon, Int32, LatLon)
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Returns the length (measured in radians) to the line segment of the 'points' array that lies closest to 'p'.
geobase.net (in geobase.net.dll) Version: 22.214.171.124
public static double Distance(
out int segment,
Public Shared Function Distance (
points As IList(Of LatLon),
<OutAttribute> ByRef segment As Integer,
p As LatLon
) As Double
- Type: System.Collections.GenericIListLatLon
The points that make up the line.
- Type: SystemInt32
Set to indicate which line segment is closest to 'p'. This is zero-based.
- Type: Telogis.GeoBaseLatLon
The point to query against the line.
The distance to the line in radians
The LatLon array points represents a series of
line segments, for example points -> points, points -> points.
Given the LatLon point p, segment is set to indicate which
line segment from the points array lies closest to p.