A structure representing a latitude value in MS Flight Simulator. More...
Public Member Functions | |
FsLatitude (long FSUnits) | |
Create a new latitude value from the 8-Byte MS Flight Simulator units supplied by FSUIPC. | |
FsLatitude (int FSUnits) | |
Create a new latitude value from the 4-Byte MS Flight Simulator units supplied by FSUIPC. | |
FsLatitude (Double DecimalDegrees) | |
Create a new latitude value in degrees. | |
FsLatitude (int Degrees, double DecimalMinutes) | |
Create a new latitude value in degrees and minutes. | |
FsLatitude (int Degrees, int Minutes, double DecimalSeconds) | |
Create a new latitude value in degrees, minutes and seconds. | |
long | ToFSUnits8 () |
Converts this latitude to 8-Byte MS Flight Simulator units. Can be used to write to FSUIPC, e.g. offset 0x0560. | |
int | ToFSUnits4 () |
Converts this latitude to 4-Byte MS Flight Simulator units. Can be used to write to FSUIPC, e.g. offset 0x085C. | |
override string | ToString () |
The latitude represented as a string in the default format of N|S dd* mm.mm'. | |
string | ToString (bool HemisphereAsText, string DetailLevel, short DecimalPlaces) |
The lattitude represented as a string in the specified format. | |
FsLatitude | Add (FsLatitudeSpan Distance) |
Create a new latitude by adding a latitude span to the current lattitude. | |
FsLatitude | Subtract (FsLatitudeSpan Distance) |
Create a new latitude by subtracting a latitude span from the current lattitude. | |
FsLatitude | AddDegrees (Double Degrees) |
Create a new latitude by adding a number of degrees to the current latitude. | |
FsLatitude | AddMinutes (Double Minutes) |
Create a new latitude by adding a number of minutes to the current latitude. | |
FsLatitude | AddSeconds (Double Seconds) |
Create a new latitude by adding a number of seconds to the current latitude. | |
Properties | |
int | Degree [get] |
The whole degree part of the latitude. | |
int | Minute [get] |
The whole minute part of the latitude. | |
int | Second [get] |
The whole second part of latitude. | |
double | DecimalDegrees [get] |
The latitiude expressed in degrees. | |
double | DecimalMinutes [get] |
The minutes part of the latitude. | |
double | DecimalSeconds [get] |
The seconds part of the latitude. |
A structure representing a latitude value in MS Flight Simulator.
FsLatitude | ( | long | FSUnits ) |
FsLatitude | ( | int | FSUnits ) |
FsLatitude | ( | Double | DecimalDegrees ) |
Create a new latitude value in degrees.
DecimalDegrees | The latitude in degrees |
FsLatitude | ( | int | Degrees, |
double | DecimalMinutes | ||
) |
Create a new latitude value in degrees and minutes.
Degrees | The number of degrees for the new latitude |
DecimalMinutes | The number of minutes for the new latitude |
FsLatitude | ( | int | Degrees, |
int | Minutes, | ||
double | DecimalSeconds | ||
) |
Create a new latitude value in degrees, minutes and seconds.
Degrees | The number of degrees for the new latitude |
Minutes | The number of minutes for the new latitude |
DecimalSeconds | The number of seconds for the new latitude |
FsLatitude Add | ( | FsLatitudeSpan | Distance ) |
Create a new latitude by adding a latitude span to the current lattitude.
Distance | The latitude span to add |
FsLatitude AddDegrees | ( | Double | Degrees ) |
Create a new latitude by adding a number of degrees to the current latitude.
Degrees | The number of degrees to add |
FsLatitude AddMinutes | ( | Double | Minutes ) |
Create a new latitude by adding a number of minutes to the current latitude.
Minutes | The number of minutes to add |
FsLatitude AddSeconds | ( | Double | Seconds ) |
Create a new latitude by adding a number of seconds to the current latitude.
Seconds | The number of seconds to add |
FsLatitude Subtract | ( | FsLatitudeSpan | Distance ) |
Create a new latitude by subtracting a latitude span from the current lattitude.
Distance | The latitude span to subtract |
int ToFSUnits4 | ( | ) |
Converts this latitude to 4-Byte MS Flight Simulator units. Can be used to write to FSUIPC, e.g. offset 0x085C.
long ToFSUnits8 | ( | ) |
Converts this latitude to 8-Byte MS Flight Simulator units. Can be used to write to FSUIPC, e.g. offset 0x0560.
override string ToString | ( | ) |
The latitude represented as a string in the default format of N|S dd* mm.mm'.
string ToString | ( | bool | HemisphereAsText, |
string | DetailLevel, | ||
short | DecimalPlaces | ||
) |
The lattitude represented as a string in the specified format.
HemisphereAsText | Denote hemisphere using N or S. If false, south 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 latitiude expressed in degrees.
double DecimalMinutes [get] |
The minutes part of the latitude.
double DecimalSeconds [get] |
The seconds part of the latitude.
int Degree [get] |
The whole degree part of the latitude.
int Minute [get] |
The whole minute part of the latitude.
int Second [get] |
The whole second part of latitude.