Click or drag to resize

Coordinates Structure

WGS-84 coordinates in degrees.

Namespace:  TomsToolbox.Desktop
Assembly:  TomsToolbox.Desktop (in TomsToolbox.Desktop.dll) Version: 1.0.70.0
Syntax
public struct Coordinates : IEquatable<Coordinates>

The Coordinates type exposes the following members.

Constructors
  NameDescription
Public methodCoordinates
Initializes a new instance of the Coordinates structure.
Top
Properties
  NameDescription
Public propertyLatitude
Gets or sets the latitude in degrees.
Public propertyLongitude
Gets or sets the longitude in degrees.
Top
Methods
  NameDescription
Public methodStatic memberCoordinatesToPoint
Converts a point from latitude/longitude WGS-84 coordinates (in degrees) into logical XY coordinates in the range 0..1
Public methodEquals(Object)
Determines whether the specified Object is equal to this instance.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Coordinates)
Determines whether the specified Coordinates is equal to this instance.
Public methodGetHashCode
Returns a hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodStatic memberPointToCoordinates
Converts a point from logical coordinates in the range 0..1 into latitude/longitude WGS-84 coordinates (in degrees).
Public methodToString
Returns a String that represents this instance.
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Implements the operator ==.
Public operatorStatic member(Point to Coordinates)
Converts a point from logical coordinates in the range 0..1 into latitude/longitude WGS-84 coordinates (in degrees).
Public operatorStatic member(Coordinates to Point)
Converts a point from WGS-84 coordinates (in degrees) into logical XY coordinates in the range 0..1.
Public operatorStatic memberInequality
Implements the operator !=.
Top
Extension Methods
  NameDescription
Public Extension MethodSafeCastT
Performs a cast from object to T, avoiding possible null violations if T is a value type.

[CanBeNull]

(Defined by ObjectExtensions.)
Top
See Also