A point in the Flight Simulator world represented by a longitude and latitude.
More...
List of all members.
Public Member Functions |
| | FsLatLonPoint (FsLatitude Latitude, FsLongitude Longitude) |
| | Create a new point from the specified latitude and longitude.
|
| double | DistanceFromInFeet (FsLatLonPoint Point) |
| | Gets the distance between this point and another specified point in Feet.
|
| double | DistanceFromInNauticalMiles (FsLatLonPoint Point) |
| | Gets the distance between this point and another specified point in Nautical Miles.
|
| double | DistanceFromInMetres (FsLatLonPoint Point) |
| | Gets the distance between this point and another specified point in Metres.
|
| double | BearingTo (FsLatLonPoint Point) |
| | Gets the bearing TO another point. The bearing will be in degrees TRUE, not magnetic.
|
| double | BearingFrom (FsLatLonPoint Point) |
| | Gets the bearing FROM another point. Bearing will be in degrees TRUE, not magnetic.
|
| FsLatLonPoint | OffsetByFeet (double Bearing, double Distance) |
| | Creates a new point by moving the specified distance along the specified bearing.
|
| FsLatLonPoint | OffsetByMetres (double Bearing, double Distance) |
| | Creates a new point by moving the specified distance along the specified bearing.
|
| FsLatLonPoint | OffsetByNauticalMiles (double Bearing, double Distance) |
| | Creates a new point by moving the specified distance along the specified bearing.
|
| override string | ToString () |
| | The latitude and longitude represented as a string in the default format of N|S|E|W dd* mm.mmmm'.
|
| string | ToString (bool HemisphereAsText, string DetailLevel, short DecimalPlaces) |
| | The latitude and longitude represented as a string in the specified format.
|
Properties |
| FsLongitude | Longitude [get] |
| | The longitude of the point.
|
| FsLatitude | Latitude [get] |
| | The latitude of the point.
|
Detailed Description
A point in the Flight Simulator world represented by a longitude and latitude.
Constructor & Destructor Documentation
Create a new point from the specified latitude and longitude.
- Parameters:
-
| Latitude | The latitude of the point |
| Longitude | The longitude of the point |
Member Function Documentation
Gets the bearing FROM another point. Bearing will be in degrees TRUE, not magnetic.
- Parameters:
-
| Point | The other point to measure the bearing from |
- Returns:
- The bearing in degrees TRUE
Gets the bearing TO another point. The bearing will be in degrees TRUE, not magnetic.
- Parameters:
-
| Point | The other point to measure the bearing to |
- Returns:
- The bearing in degrees TRUE
Gets the distance between this point and another specified point in Feet.
- Parameters:
-
| Point | The other point from which to measure the distance |
- Returns:
- The distance between this point and the other specified point in Feet
Gets the distance between this point and another specified point in Metres.
- Parameters:
-
| Point | The other point from which to measure the distance |
- Returns:
- The distance between this point and the other specified point in Metres
Gets the distance between this point and another specified point in Nautical Miles.
- Parameters:
-
| Point | The other point from which to measure the distance |
- Returns:
- The distance between this point and the other specified point in Nautical Miles
Creates a new point by moving the specified distance along the specified bearing.
- Parameters:
-
| Bearing | The bearing from this point along which the new point is located in degrees TRUE |
| Distance | The distance from this point which the new point is located in Feet |
- Returns:
- A new FsLatLonPoint representing a new point that is the specified distance away from this point in the specified direction
Creates a new point by moving the specified distance along the specified bearing.
- Parameters:
-
| Bearing | The bearing from this point along which the new point is located in degrees TRUE |
| Distance | The distance from this point which the new point is located in Metres |
- Returns:
- A new FsLatLonPoint representing a new point that is the specified distance away from this point in the specified direction
| FsLatLonPoint OffsetByNauticalMiles |
( |
double |
Bearing, |
|
|
double |
Distance |
|
) |
| |
Creates a new point by moving the specified distance along the specified bearing.
- Parameters:
-
| Bearing | The bearing from this point along which the new point is located in degrees TRUE |
| Distance | The distance from this point which the new point is located in Nautical Miles |
- Returns:
- A new FsLatLonPoint representing a new point that is the specified distance away from this point in the specified direction
| override string ToString |
( |
) |
|
The latitude and longitude represented as a string in the default format of N|S|E|W dd* mm.mmmm'.
- Returns:
- A string representation of the Longitude and Latitude of this point in the default format
| string ToString |
( |
bool |
HemisphereAsText, |
|
|
string |
DetailLevel, |
|
|
short |
DecimalPlaces |
|
) |
| |
The latitude and longitude represented as a string in the specified format.
- Parameters:
-
| HemisphereAsText | Denote hemisphere using N,S,W or E. If false, west/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 |
- Returns:
- A string representation of the Longitude and Latitude of this point in the specified format
Property Documentation
The latitude of the point.
The longitude of the point.