Create a new LatLng object to represent a latitude/longitude pair using the WGS84 datum.

Namespace:  DotNetCoords
Assembly:  DotNetCoords (in DotNetCoords.dll) Version: 1.0.0.1 (1.0.0.1)

Syntax

C#
public LatLng(
	double latitude,
	double longitude,
	double height
)
Visual Basic (Declaration)
Public Sub New ( _
	latitude As Double, _
	longitude As Double, _
	height As Double _
)
Visual C++
public:
LatLng(
	double latitude, 
	double longitude, 
	double height
)

Parameters

latitude
Type: System..::.Double
The latitude in degrees. Must be between -90.0 and 90.0 inclusive. -90.0 and 90.0 are effectively equivalent.
longitude
Type: System..::.Double
The longitude in degrees. Must be between -180.0 and 180.0 inclusive. -180.0 and 180.0 are effectively equivalent.
height
Type: System..::.Double
The perpendicular height above the reference ellipsoid.

Exceptions

ExceptionCondition
System..::.ArgumentExceptionIf either the given latitude or the given longitude are invalid.

See Also