Click or drag to resize

LatLonIsWithin Method

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Check whether this LatLon lies within a box defined by the minimum and maximum LatLons. See remarks.

Namespace:  Telogis.GeoBase
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public bool IsWithin(
	LatLon min,
	LatLon max
)

Parameters

min
Type: Telogis.GeoBaseLatLon
Represents the minimum latitude & longitude.
max
Type: Telogis.GeoBaseLatLon
Represents the maximum latitude & longitude.

Return Value

Type: Boolean
true if this LatLon lies within the area given, false if not.
Remarks
The minimum and maximum LatLons can be thought of as representing the opposite corners of a box. Thus the method tests whether this LatLon lies within (or on the edge of) said box. Should the parameters have the same latitude or longitude, then the method returns true if this LatLon lies on a line drawn between the two parameters.
See Also