FSUIPC Client DLL
.NET interface for FSUIPC
FsLatitudeSpan Struct Reference

Represents a span of latitude in MS Flight Simulator More...

Public Member Functions

 FsLatitudeSpan (double DecimalDegrees)
 Create a new latitude span represented by a number of degrees More...
 
 FsLatitudeSpan (int Degrees, double DecimalMinutes)
 Create a new latitude span represented by a number of degrees and minutes More...
 
 FsLatitudeSpan (int Degrees, int Minutes, double DecimalSeconds)
 Create a new latitude span represented by a number of degrees, minutes and seconds More...
 
double ToFeet ()
 Gets the distance represented by the span in Feet More...
 
double ToNauticalMiles ()
 Gets the distance represented by the span in Nautical Miles More...
 
double ToMetres ()
 Gets the distance represented by the span in Metres More...
 
override string ToString ()
 The span represented as a string in the default format of dd* mm.mmmm' More...
 
string ToString (string DetailLevel, int DecimalPlaces)
 The span represented as a string in the specified format More...
 

Static Public Member Functions

static FsLatitudeSpan FromFeet (double Feet)
 Create a new latitude span that represents a given distance in Feet More...
 
static FsLatitudeSpan FromNauticalMiles (double NauticalMiles)
 Create a new latitude span that represents a given distance in Nautical Miles More...
 
static FsLatitudeSpan FromMetres (double Metres)
 Create a new latitude span that represents a given distance in Metres More...
 
static FsLatitudeSpan BetweenTwoLatitides (FsLatitude Lat1, FsLatitude Lat2)
 Create a new latitude span from two latitudes. The span will be the shortest absolute distance between them. More...
 

Properties

int Degrees [get]
 The number of whole degrees represented in the span More...
 
int Minutes [get]
 The number of whole minutes represented in the span More...
 
int Seconds [get]
 The number of whole seconds represented in the span More...
 
double DecimalDegrees [get]
 The total number of degrees represented in the span More...
 
double DecimalMinutes [get]
 The number of minutes represented in the span More...
 
double DecimalSeconds [get]
 The number of seconds represented in the span More...
 
double TotalMinutes [get]
 The value of the entire span represented in minutes More...
 
double TotalSeconds [get]
 The value of the entire span represented in seconds More...
 

Detailed Description

Represents a span of latitude in MS Flight Simulator

Constructor & Destructor Documentation

◆ FsLatitudeSpan() [1/3]

FsLatitudeSpan ( double  DecimalDegrees)
inline

Create a new latitude span represented by a number of degrees

Parameters
DecimalDegreesThe number of degrees for the span

◆ FsLatitudeSpan() [2/3]

FsLatitudeSpan ( int  Degrees,
double  DecimalMinutes 
)
inline

Create a new latitude span represented by a number of degrees and minutes

Parameters
DegreesThe number of degrees for the span
DecimalMinutesThe number of minutes for the span

◆ FsLatitudeSpan() [3/3]

FsLatitudeSpan ( int  Degrees,
int  Minutes,
double  DecimalSeconds 
)
inline

Create a new latitude span represented by a number of degrees, minutes and seconds

Parameters
DegreesThe number of degrees for the span
MinutesThe number of minutes for the span
DecimalSecondsThe number of seconds for the span

Member Function Documentation

◆ BetweenTwoLatitides()

static FsLatitudeSpan BetweenTwoLatitides ( FsLatitude  Lat1,
FsLatitude  Lat2 
)
inlinestatic

Create a new latitude span from two latitudes. The span will be the shortest absolute distance between them.

Parameters
Lat1The Latitude at one end of the span
Lat2The Latitude at the other end of the span
Returns
An FsLatitudeSpan representing the distance between the two latitudes in degrees

◆ FromFeet()

static FsLatitudeSpan FromFeet ( double  Feet)
inlinestatic

Create a new latitude span that represents a given distance in Feet

Parameters
FeetThe number of Feet to convert to a latitude span
Returns
An FsLatitudeSpan representing the number of feet in degrees latitude

◆ FromMetres()

static FsLatitudeSpan FromMetres ( double  Metres)
inlinestatic

Create a new latitude span that represents a given distance in Metres

Parameters
MetresThe number of Metres to convert to a latitude span
Returns
An FsLatitudeSpan representing the number of metres in degrees latitude

◆ FromNauticalMiles()

static FsLatitudeSpan FromNauticalMiles ( double  NauticalMiles)
inlinestatic

Create a new latitude span that represents a given distance in Nautical Miles

Parameters
NauticalMilesThe number of Nautical Miles to convert to a latitude span
Returns
An FsLatitudeSpan representing the number of Nautical Miles in degrees latitude

◆ ToFeet()

double ToFeet ( )
inline

Gets the distance represented by the span in Feet

◆ ToMetres()

double ToMetres ( )
inline

Gets the distance represented by the span in Metres

◆ ToNauticalMiles()

double ToNauticalMiles ( )
inline

Gets the distance represented by the span in Nautical Miles

◆ ToString() [1/2]

override string ToString ( )
inline

The span represented as a string in the default format of dd* mm.mmmm'

Returns
A string representing the latitude span in the default format

◆ ToString() [2/2]

string ToString ( string  DetailLevel,
int  DecimalPlaces 
)
inline

The span represented as a string in the specified format

Parameters
DetailLevelSpecifies the detail level. "d" for degrees only, "m" for degrees and minutes, "s" for degrees, minutes and seconds
DecimalPlacesThe number of decimal places to show
Returns
A string representing the latitude span in the specified format

Property Documentation

◆ DecimalDegrees

double DecimalDegrees
get

The total number of degrees represented in the span

◆ DecimalMinutes

double DecimalMinutes
get

The number of minutes represented in the span

◆ DecimalSeconds

double DecimalSeconds
get

The number of seconds represented in the span

◆ Degrees

int Degrees
get

The number of whole degrees represented in the span

◆ Minutes

int Minutes
get

The number of whole minutes represented in the span

◆ Seconds

int Seconds
get

The number of whole seconds represented in the span

◆ TotalMinutes

double TotalMinutes
get

The value of the entire span represented in minutes

◆ TotalSeconds

double TotalSeconds
get

The value of the entire span represented in seconds