Click or drag to resize

Coordinates Structure

WGS-84 coordinates in degrees.
Inheritance Hierarchy
SystemObject
  SystemValueType
    TomsToolbox.WpfCoordinates

Namespace: TomsToolbox.Wpf
Assembly: TomsToolbox.Wpf (in TomsToolbox.Wpf.dll) Version: 2.21.0+44d18b541fc9419ec3c549350a832394661b2a4d
XMLNS for XAML: Not mapped to an xmlns.
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(Coordinates) Determines whether the specified Coordinates is equal to this instance.
Public methodEquals(Object) Determines whether the specified Object is equal to this instance.
(Overrides ValueTypeEquals(Object))
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(Coordinates, Coordinates) Implements the operator ==.
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 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 memberInequality(Coordinates, Coordinates) 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.
(Defined by ObjectExtensions)
Top
See Also