Aydsko iRacing Data API
Show / Hide Table of Contents

Struct TrackCoordinate

Represents the latitude and longitude of a track.

Implements
IEquatable<TrackCoordinate>
Inherited Members
ValueType.ToString()
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: Aydsko.iRacingData.Tracks
Assembly: Aydsko.iRacingData.dll
Syntax
public struct TrackCoordinate : IEquatable<TrackCoordinate>

Constructors

TrackCoordinate(double, double)

Represents the latitude and longitude of a track.

Declaration
public TrackCoordinate(double latitude, double longitude)
Parameters
Type Name Description
double latitude
double longitude

Properties

Latitude

Declaration
public readonly double Latitude { get; }
Property Value
Type Description
double

Latitude value.

Longitude

Declaration
public readonly double Longitude { get; }
Property Value
Type Description
double

Longitude value.

Methods

Equals(TrackCoordinate)

Declaration
public readonly bool Equals(TrackCoordinate other)
Parameters
Type Name Description
TrackCoordinate other
Returns
Type Description
bool

Equals(object?)

Declaration
public override readonly bool Equals(object? obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
ValueType.Equals(object)

GetHashCode()

Declaration
public override readonly int GetHashCode()
Returns
Type Description
int
Overrides
ValueType.GetHashCode()

TryParse(string?, out TrackCoordinate?)

Attempt to parse the given string into a TrackCoordinate object.

Declaration
public static bool TryParse(string? input, out TrackCoordinate? result)
Parameters
Type Name Description
string input

The value to parse.

TrackCoordinate? result

Contains the coordinates value if the parse was successful, or null otherwise.

Returns
Type Description
bool

true if the parse was successful, or false.

Operators

operator ==(TrackCoordinate, TrackCoordinate)

Declaration
public static bool operator ==(TrackCoordinate left, TrackCoordinate right)
Parameters
Type Name Description
TrackCoordinate left
TrackCoordinate right
Returns
Type Description
bool

operator !=(TrackCoordinate, TrackCoordinate)

Declaration
public static bool operator !=(TrackCoordinate left, TrackCoordinate right)
Parameters
Type Name Description
TrackCoordinate left
TrackCoordinate right
Returns
Type Description
bool

Implements

IEquatable<T>
In this article
Back to top Generated by DocFX