FSUIPC Client DLL
.NET interface for FSUIPC
FsLongitudeSpan Struct Reference

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

Public Member Functions

 FsLongitudeSpan (double DecimalDegrees)
 Create a new longitude span represented by a number of degrees More...
 
 FsLongitudeSpan (int Degrees, double DecimalMinutes)
 Create a new longitude span represented by a number of degrees and minutes More...
 
 FsLongitudeSpan (int Degrees, int Minutes, double DecimalSeconds)
 Create a new longitude span represented by a number of degrees, minutes and seconds More...
 
double ToFeet (FsLatitude AtLatitude)
 Gets the distance represented by the span in Feet More...
 
double ToNauticalMiles (FsLatitude AtLatitude)
 Gets the distance represented by the span in Nautical Miles More...
 
double ToMetres (FsLatitude AtLatitude)
 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 FsLongitudeSpan FromFeet (double Feet, FsLatitude AtLatitude)
 Create a new longitude span that represents a given distance in Feet at a given latitude More...
 
static FsLongitudeSpan FromNauticalMiles (double NauticalMiles, FsLatitude AtLatitude)
 Create a new longitude span that represents a given distance in Nautical Miles at a given latitude More...
 
static FsLongitudeSpan FromMetres (double Metres, FsLatitude AtLatitude)
 Create a new longitude span that represents a given distance in Metres at a given latitude More...
 
static FsLongitudeSpan BetweenTwoLongitudes (FsLongitude Lon1, FsLongitude Lon2)
 Create a new longitude span from two longitudes. 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 longitude in MS Flight Simulator

Constructor & Destructor Documentation

◆ FsLongitudeSpan() [1/3]

FsLongitudeSpan ( double  DecimalDegrees)
inline

Create a new longitude span represented by a number of degrees

Parameters
DecimalDegreesThe number of degrees for the span

◆ FsLongitudeSpan() [2/3]

FsLongitudeSpan ( int  Degrees,
double  DecimalMinutes 
)
inline

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

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

◆ FsLongitudeSpan() [3/3]

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

Create a new longitude 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

◆ BetweenTwoLongitudes()

static FsLongitudeSpan BetweenTwoLongitudes ( FsLongitude  Lon1,
FsLongitude  Lon2 
)
inlinestatic

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

Parameters
Lon1The longitude at one end of the span
Lon2The longitude at the other end of the span
Returns
A new FsLongitudeSpan representing the distance between the two given Longitudes

◆ FromFeet()

static FsLongitudeSpan FromFeet ( double  Feet,
FsLatitude  AtLatitude 
)
inlinestatic

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

Parameters
FeetThe number of Feet to convert to a logitude span
AtLatitudeThe latitude at which to perform the calculation<para>(A degree of longitude near the equator is longer than a degree of longitude near a pole)
Returns
A new FsLongitudeSpan representing the specified distance in degrees Longitude at a given latitude

◆ FromMetres()

static FsLongitudeSpan FromMetres ( double  Metres,
FsLatitude  AtLatitude 
)
inlinestatic

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

Parameters
MetresThe number of Metres to convert to a logitude span
AtLatitudeThe latitude at which to perform the calculation<para>(A degree of longitude near the equator is longer than a degree of longitude near a pole)
Returns
A new FsLongitudeSpan representing the specified distance in degrees Longitude at a given latitude

◆ FromNauticalMiles()

static FsLongitudeSpan FromNauticalMiles ( double  NauticalMiles,
FsLatitude  AtLatitude 
)
inlinestatic

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

Parameters
NauticalMilesThe number of Nautical Miles to convert to a logitude span
AtLatitudeThe latitude at which to perform the calculation<para>(A degree of longitude near the equator is longer than a degree of longitude near a pole)
Returns
A new FsLongitudeSpan representing the specified distance in degrees Longitude at a given latitude

◆ ToFeet()

double ToFeet ( FsLatitude  AtLatitude)
inline

Gets the distance represented by the span in Feet

Parameters
AtLatitudeThe latitude at which to perform the calculation<para>(A degree of longitude near the equator is longer than a degree of longitude near a pole)
Returns
The number of Feet represented by the Longitude span at the specified Latitude

◆ ToMetres()

double ToMetres ( FsLatitude  AtLatitude)
inline

Gets the distance represented by the span in Metres

Parameters
AtLatitudeThe latitude at which to perform the calculation<para>(A degree of longitude near the equator is longer than a degree of longitude near a pole)
Returns
The number of Metres represented by the Longitude span at the specified Latitude

◆ ToNauticalMiles()

double ToNauticalMiles ( FsLatitude  AtLatitude)
inline

Gets the distance represented by the span in Nautical Miles

Parameters
AtLatitudeThe latitude at which to perform the calculation<para>(A degree of longitude near the equator is longer than a degree of longitude near a pole)
Returns
The number of Nautical Miles represented by the Longitude span at the specified Latitude

◆ ToString() [1/2]

override string ToString ( )
inline

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

Returns
A string representation of the Longitude 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 representation of the Longitude 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