Table of Contents

Struct Coordinates

Namespace
DotBahn.Common.Models
Assembly
DotBahn.Common.dll

Geographic coordinates representing the location of an entity

public readonly struct Coordinates : IEquatable<Coordinates>
Implements
Inherited Members

Properties

Latitude

Latitude in decimal degrees (north-south position).

public required double Latitude { get; init; }

Property Value

double

Longitude

Longitude in decimal degrees (east-west position).

public required double Longitude { get; init; }

Property Value

double

Methods

Equals(Coordinates)

public bool Equals(Coordinates other)

Parameters

other Coordinates

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(Coordinates, Coordinates)

public static bool operator ==(Coordinates left, Coordinates right)

Parameters

left Coordinates
right Coordinates

Returns

bool

operator !=(Coordinates, Coordinates)

public static bool operator !=(Coordinates left, Coordinates right)

Parameters

left Coordinates
right Coordinates

Returns

bool