doogal.co.uk Home



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.15 (1.0.0.15)

Syntax

C#
public LatLng(
	int latitudeDegrees,
	int latitudeMinutes,
	double latitudeSeconds,
	NorthSouth northSouth,
	int longitudeDegrees,
	int longitudeMinutes,
	double longitudeSeconds,
	EastWest eastWest,
	double height
)
Visual Basic
Public Sub New ( 
	latitudeDegrees As Integer,
	latitudeMinutes As Integer,
	latitudeSeconds As Double,
	northSouth As NorthSouth,
	longitudeDegrees As Integer,
	longitudeMinutes As Integer,
	longitudeSeconds As Double,
	eastWest As EastWest,
	height As Double
)
Visual C++
public:
LatLng(
	int latitudeDegrees, 
	int latitudeMinutes, 
	double latitudeSeconds, 
	NorthSouth northSouth, 
	int longitudeDegrees, 
	int longitudeMinutes, 
	double longitudeSeconds, 
	EastWest eastWest, 
	double height
)
F#
new : 
        latitudeDegrees : int * 
        latitudeMinutes : int * 
        latitudeSeconds : float * 
        northSouth : NorthSouth * 
        longitudeDegrees : int * 
        longitudeMinutes : int * 
        longitudeSeconds : float * 
        eastWest : EastWest * 
        height : float -> LatLng

Parameters

latitudeDegrees
Type: System..::..Int32
The degrees part of the latitude. Must be 0 <= latitudeDegrees <= 90.0.
latitudeMinutes
Type: System..::..Int32
The minutes part of the latitude. Must be 0 <= latitudeMinutes < 60.0.
latitudeSeconds
Type: System..::..Double
The seconds part of the latitude. Must be 0 <= latitudeSeconds < 60.0.
northSouth
Type: DotNetCoords..::..NorthSouth
Whether the latitude is north or south of the equator.
longitudeDegrees
Type: System..::..Int32
The degrees part of the longitude. Must be 0 <= longitudeDegrees <= 180.0.
longitudeMinutes
Type: System..::..Int32
The minutes part of the longitude. Must be 0 <= longitudeMinutes < 60.0.
longitudeSeconds
Type: System..::..Double
The seconds part of the longitude. Must be 0 <= longitudeSeconds < 60.0.
eastWest
Type: DotNetCoords..::..EastWest
Whether the longitude is east or west of the prime meridian.
height
Type: System..::..Double
The perpendicular height above the reference ellipsoid.

Exceptions

ExceptionCondition
System..::..ArgumentExceptionif any of the parameters are invalid.

See Also