Click or drag to resize

LongLat Structure

Defines a geographic position in terms of its longitude and latitude coordinates.
Inheritance Hierarchy
SystemObject
  SystemValueType
    DegreeDays.GeoLongLat

Namespace: DegreeDays.Geo
Assembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax
public struct LongLat : IEquatable<LongLat>

The LongLat type exposes the following members.

Constructors
 NameDescription
Public methodLongLat Constructs a LongLat object with the specified longitude and latitude (take care not to mix these up).
Top
Properties
 NameDescription
Public propertyLatitude Gets the latitude: a number between -90 and 90 (both inclusive) representing the South/North coordinate. -90 represents the South Pole, 90 represents the North Pole, and 0 represents the equator.
Public propertyLongitude Gets the longitude: a number between -180 and 180 (both inclusive) representing the West/East coordinate, zeroed on a line passing to the rear of the Royal Observatory, Greenwich (near London in the UK).
Top
Methods
 NameDescription
Public methodDistanceTo Returns a Distance that represents the shortest distance along the surface of the Earth from this to the specified longLat.
Public methodEast Returns a LongLat that represents a position the specified distance East of this.
Public methodEquals(LongLat) Returns true if other has the same Longitude and Latitude values as this.
Public methodEquals(Object) Returns true if obj is a LongLat instance with the same Longitude and Latitude values as this.
(Overrides ValueTypeEquals(Object))
Public methodGetHashCode Overridden to ensure consistency with Equals.
(Overrides ValueTypeGetHashCode)
Public methodNorth Returns a LongLat that represents a position the specified distance North of this.
Public methodSouth Returns a LongLat that represents a position the specified distance South of this.
Public methodToString Returns a non-null, non-empty string representation of this instance for logging and debugging purposes.
(Overrides ValueTypeToString)
Public methodWest Returns a LongLat that represents a position the specified distance West of this.
Top
Operators
 NameDescription
Public operatorStatic memberEquality(LongLat, LongLat) Determines whether two specified LongLat instances are equal.
Public operatorStatic memberInequality(LongLat, LongLat) Determines whether two specified LongLat instances are not equal.
Top
Remarks

Also provides useful methods for measuring distances between points and moving points North, South, East, and West.

Thread Safety
Instances of this struct are immutable and safe for use from multiple threads at once.
See Also