Share via


Position Struct

Definition

A struct that has a latitude and longitude, stored as doubles.

public struct Position
type Position = struct
Inheritance
System.ValueType
Position

Constructors

Position(Double, Double)

Constructs a new Position structure with a given latitude and longitude.

Properties

Latitude

Gets the latitude of this position in decimal degrees.

Longitude

Gets the longitude of this position in decimal degrees.

Methods

Equals(Object)

Returns a Boolean value that indicates whether or not obj is another Position structure and represents exactly the same latitude and longitude as this one.

GetHashCode()

Returns the hash code for this instance.

Operators

Equality(Position, Position)

Returns a Boolean value that indicates whether or not left represents exactly the same latitude and longitude as right.

Inequality(Position, Position)

Returns a Boolean value that indicates whether or not left and right represent different latitudes or longitudes.

Applies to