FSUIPC Client DLL
.NET interface for FSUIPC
FsLongitude Struct Reference

A structure representing a longitude value in MS Flight Simulator More...

Public Member Functions

 FsLongitude (long FSUnits)
 Create a new longitude value from the 8-Byte MS Flight Simulator units supplied by FSUIPC More...
 
 FsLongitude (int FSUnits)
 Create a new longitude value from the 4-Byte MS Flight Simulator units supplied by FSUIPC More...
 
 FsLongitude (Double DecimalDegrees)
 Create a new longitude value in degrees - Uses the 8 byte FS Units More...
 
 FsLongitude (Double DecimalDegrees, bool UseFullPrecision)
 Create a new longitude value in degrees using either the 8 or 4 byte FS Units More...
 
 FsLongitude (int Degrees, double DecimalMinutes)
 Create a new longitude value in degrees and minutes - Uses the 8 byte FS Units More...
 
 FsLongitude (int Degrees, double DecimalMinutes, bool UseFullPrecision)
 Create a new longitude value in degrees and minutes using either the 8 or 4 byte FS Units More...
 
 FsLongitude (int Degrees, int Minutes, double DecimalSeconds)
 Create a new longitude value in degrees, minutes and seconds - Uses the 8 byte FS Units More...
 
 FsLongitude (int Degrees, int Minutes, double DecimalSeconds, bool UseFullPrecision)
 Create a new longitude value in degrees, minutes and seconds using either the 8 or 4 byte FS Units More...
 
long ToFSUnits8 ()
 Converts this longitude to 8-Byte MS Flight Simulator units. Can be used to write to FSUIPC, e.g. offset 0x0568 More...
 
int ToFSUnits4 ()
 Converts this longitude to 4-Byte MS Flight Simulator units. Can be used to write to FSUIPC, e.g. offset 0x0864 More...
 
override string ToString ()
 The longitude represented as a string in the default format of N|S dd* mm.mmmm' More...
 
string ToString (bool HemisphereAsText, string DetailLevel, short DecimalPlaces)
 The longitude represented as a string in the specified format More...
 
FsLongitude Add (FsLongitudeSpan Distance)
 Create a new longitude by adding a longitude span to the current longitude More...
 
FsLongitude Subtract (FsLongitudeSpan Distance)
 Create a new longitude by subtracting a longitude span from the current longitude More...
 
FsLongitude AddDegrees (Double Degrees)
 Create a new longitude by adding a number of degrees to the current longitude More...
 
FsLongitude AddMinutes (Double Minutes)
 Create a new longitude by adding a number of minutes to the current longitude More...
 
FsLongitude AddSeconds (Double Seconds)
 Create a new longitude by adding a number of seconds to the current longitude More...
 

Properties

int Degree [get]
 The whole degree part of the longitude More...
 
int Minute [get]
 The whole minute part of the longitude More...
 
int Second [get]
 The whole seconds part of the longitude More...
 
double DecimalDegrees [get, set]
 The longitude expressed in degrees More...
 
double DecimalMinutes [get]
 The minutes part of the longitude More...
 
double DecimalSeconds [get]
 The seconds part of the longitude More...
 

Detailed Description

A structure representing a longitude value in MS Flight Simulator

Constructor & Destructor Documentation

◆ FsLongitude() [1/8]

FsLongitude ( long  FSUnits)
inline

Create a new longitude value from the 8-Byte MS Flight Simulator units supplied by FSUIPC

Parameters
FSUnitsAn 8-Byte integer representing the longitude in FS Units. e.g. from FSUIPC offset 0x0568

◆ FsLongitude() [2/8]

FsLongitude ( int  FSUnits)
inline

Create a new longitude value from the 4-Byte MS Flight Simulator units supplied by FSUIPC

Parameters
FSUnitsA 4-Byte integer representing the longitude in FS Units. e.g. from FSUIPC offset 0x0864

◆ FsLongitude() [3/8]

FsLongitude ( Double  DecimalDegrees)
inline

Create a new longitude value in degrees - Uses the 8 byte FS Units

Parameters
DecimalDegreesThe longitude value in degrees

◆ FsLongitude() [4/8]

FsLongitude ( Double  DecimalDegrees,
bool  UseFullPrecision 
)
inline

Create a new longitude value in degrees using either the 8 or 4 byte FS Units

Parameters
DecimalDegreesThe longitude value in degrees
UseFullPrecisionPass true to use the 8-Byte FS Units, or false to use the 4-Byte Units

◆ FsLongitude() [5/8]

FsLongitude ( int  Degrees,
double  DecimalMinutes 
)
inline

Create a new longitude value in degrees and minutes - Uses the 8 byte FS Units

Parameters
DegreesThe number of degrees for the new longitude
DecimalMinutesThe number of minutes for the new longitude

◆ FsLongitude() [6/8]

FsLongitude ( int  Degrees,
double  DecimalMinutes,
bool  UseFullPrecision 
)
inline

Create a new longitude value in degrees and minutes using either the 8 or 4 byte FS Units

Parameters
DegreesThe number of degrees for the new longitude
DecimalMinutesThe number of minutes for the new longitude
UseFullPrecisionPass true to use the 8-Byte FS Units, or false to use the 4-Byte Units

◆ FsLongitude() [7/8]

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

Create a new longitude value in degrees, minutes and seconds - Uses the 8 byte FS Units

Parameters
DegreesThe number of degrees for the new longitude
MinutesThe number of minutes for the new longitude
DecimalSecondsThe number of seconds for the new longitude

◆ FsLongitude() [8/8]

FsLongitude ( int  Degrees,
int  Minutes,
double  DecimalSeconds,
bool  UseFullPrecision 
)
inline

Create a new longitude value in degrees, minutes and seconds using either the 8 or 4 byte FS Units

Parameters
DegreesThe number of degrees for the new longitude
MinutesThe number of minutes for the new longitude
DecimalSecondsThe number of seconds for the new longitude
UseFullPrecisionPass true to use the 8-Byte FS Units, or false to use the 4-Byte Units

Member Function Documentation

◆ Add()

FsLongitude Add ( FsLongitudeSpan  Distance)
inline

Create a new longitude by adding a longitude span to the current longitude

Parameters
DistanceThe longitude span to add
Returns
The resulting longitude after the addition

◆ AddDegrees()

FsLongitude AddDegrees ( Double  Degrees)
inline

Create a new longitude by adding a number of degrees to the current longitude

Parameters
DegreesThe number of degrees to add
Returns
The resulting longitude after the addition

◆ AddMinutes()

FsLongitude AddMinutes ( Double  Minutes)
inline

Create a new longitude by adding a number of minutes to the current longitude

Parameters
MinutesThe nunber of minutes to add
Returns
The resulting longitude after the addition

◆ AddSeconds()

FsLongitude AddSeconds ( Double  Seconds)
inline

Create a new longitude by adding a number of seconds to the current longitude

Parameters
SecondsThe nunber of seconds to add
Returns
The resulting longitude after the addition

◆ Subtract()

FsLongitude Subtract ( FsLongitudeSpan  Distance)
inline

Create a new longitude by subtracting a longitude span from the current longitude

Parameters
DistanceThe longitude span to subtract
Returns
The resulting longitude after the subtraction

◆ ToFSUnits4()

int ToFSUnits4 ( )
inline

Converts this longitude to 4-Byte MS Flight Simulator units. Can be used to write to FSUIPC, e.g. offset 0x0864

Returns
The longitude represented in 4-Byte MS Flight Simulator units.

◆ ToFSUnits8()

long ToFSUnits8 ( )
inline

Converts this longitude to 8-Byte MS Flight Simulator units. Can be used to write to FSUIPC, e.g. offset 0x0568

Returns
The longitude represented in 8-Byte MS Flight Simulator units.

◆ ToString() [1/2]

override string ToString ( )
inline

The longitude represented as a string in the default format of N|S dd* mm.mmmm'

Returns
A string representing the longitude in the default format

◆ ToString() [2/2]

string ToString ( bool  HemisphereAsText,
string  DetailLevel,
short  DecimalPlaces 
)
inline

The longitude represented as a string in the specified format

Parameters
HemisphereAsTextDenote hemisphere using W or E. If false, west is marked as -
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 longitude in the specified format

Property Documentation

◆ DecimalDegrees

double DecimalDegrees
getset

The longitude expressed in degrees

◆ DecimalMinutes

double DecimalMinutes
get

The minutes part of the longitude

◆ DecimalSeconds

double DecimalSeconds
get

The seconds part of the longitude

◆ Degree

int Degree
get

The whole degree part of the longitude

◆ Minute

int Minute
get

The whole minute part of the longitude

◆ Second

int Second
get

The whole seconds part of the longitude