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. | |
FsLongitude (int FSUnits) | |
Create a new longitude value from the 4-Byte MS Flight Simulator units supplied by FSUIPC. | |
FsLongitude (Double DecimalDegrees) | |
Create a new longitude value in degrees. | |
FsLongitude (int Degrees, double DecimalMinutes) | |
Create a new longitude value in degrees and minutes. | |
FsLongitude (int Degrees, int Minutes, double DecimalSeconds) | |
Create a new longitude value in degrees, minutes and seconds. | |
long | ToFSUnits8 () |
Converts this longitude to 8-Byte MS Flight Simulator units. Can be used to write to FSUIPC, e.g. offset 0x0568. | |
int | ToFSUnits4 () |
Converts this longitude to 4-Byte MS Flight Simulator units. Can be used to write to FSUIPC, e.g. offset 0x0864. | |
override string | ToString () |
The longitude represented as a string in the default format of N|S dd* mm.mmmm'. | |
string | ToString (bool HemisphereAsText, string DetailLevel, short DecimalPlaces) |
The longitude represented as a string in the specified format. | |
FsLongitude | Add (FsLongitudeSpan Distance) |
Create a new longitude by adding a longitude span to the current longitude. | |
FsLongitude | Subtract (FsLongitudeSpan Distance) |
Create a new longitude by subtracting a longitude span from the current longitude. | |
FsLongitude | AddDegrees (Double Degrees) |
Create a new longitude by adding a number of degrees to the current longitude. | |
FsLongitude | AddMinutes (Double Minutes) |
Create a new longitude by adding a number of minutes to the current longitude. | |
FsLongitude | AddSeconds (Double Seconds) |
Create a new longitude by adding a number of seconds to the current longitude. | |
Properties | |
int | Degree [get] |
The whole degree part of the longitude. | |
int | Minute [get] |
The whole minute part of the longitude. | |
int | Second [get] |
The whole seconds part of the longitude. | |
double | DecimalDegrees [get] |
The longitude expressed in degrees. | |
double | DecimalMinutes [get] |
The minutes part of the longitude. | |
double | DecimalSeconds [get] |
The seconds part of the longitude. |
A structure representing a longitude value in MS Flight Simulator.
FsLongitude | ( | long | FSUnits ) |
FsLongitude | ( | int | FSUnits ) |
FsLongitude | ( | Double | DecimalDegrees ) |
Create a new longitude value in degrees.
DecimalDegrees | The longitude value in degrees |
FsLongitude | ( | int | Degrees, |
double | DecimalMinutes | ||
) |
Create a new longitude value in degrees and minutes.
Degrees | The number of degrees for the new longitude |
DecimalMinutes | The number of minutes for the new longitude |
FsLongitude | ( | int | Degrees, |
int | Minutes, | ||
double | DecimalSeconds | ||
) |
Create a new longitude value in degrees, minutes and seconds.
Degrees | The number of degrees for the new longitude |
Minutes | The number of minutes for the new longitude |
DecimalSeconds | The number of seconds for the new longitude |
FsLongitude Add | ( | FsLongitudeSpan | Distance ) |
Create a new longitude by adding a longitude span to the current longitude.
Distance | The longitude span to add |
FsLongitude AddDegrees | ( | Double | Degrees ) |
Create a new longitude by adding a number of degrees to the current longitude.
Degrees | The number of degrees to add |
FsLongitude AddMinutes | ( | Double | Minutes ) |
Create a new longitude by adding a number of minutes to the current longitude.
Minutes | The nunber of minutes to add |
FsLongitude AddSeconds | ( | Double | Seconds ) |
Create a new longitude by adding a number of seconds to the current longitude.
Seconds | The nunber of seconds to add |
FsLongitude Subtract | ( | FsLongitudeSpan | Distance ) |
Create a new longitude by subtracting a longitude span from the current longitude.
Distance | The longitude span to subtract |
int ToFSUnits4 | ( | ) |
Converts this longitude to 4-Byte MS Flight Simulator units. Can be used to write to FSUIPC, e.g. offset 0x0864.
long ToFSUnits8 | ( | ) |
Converts this longitude to 8-Byte MS Flight Simulator units. Can be used to write to FSUIPC, e.g. offset 0x0568.
override string ToString | ( | ) |
The longitude represented as a string in the default format of N|S dd* mm.mmmm'.
string ToString | ( | bool | HemisphereAsText, |
string | DetailLevel, | ||
short | DecimalPlaces | ||
) |
The longitude represented as a string in the specified format.
HemisphereAsText | Denote hemisphere using W or E. If false, west is marked as - |
DetailLevel | Specifies the detail level. "d" for degrees only, "m" for degrees and minutes, "s" for degrees, minutes and seconds |
DecimalPlaces | The number of decimal places to show |
double DecimalDegrees [get] |
The longitude expressed in degrees.
double DecimalMinutes [get] |
The minutes part of the longitude.
double DecimalSeconds [get] |
The seconds part of the longitude.
int Degree [get] |
The whole degree part of the longitude.
int Minute [get] |
The whole minute part of the longitude.
int Second [get] |
The whole seconds part of the longitude.