Public Member Functions | Properties

FsLatLonPoint Struct Reference

A point in the Flight Simulator world represented by a longitude and latitude. More...

Collaboration diagram for FsLatLonPoint:

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

FsLatLonPoint ( FsLatitude  Latitude,
FsLongitude  Longitude 
)

Create a new point from the specified latitude and longitude.

Parameters:
LatitudeThe latitude of the point
LongitudeThe longitude of the point

Member Function Documentation

double BearingFrom ( FsLatLonPoint  Point )

Gets the bearing FROM another point. Bearing will be in degrees TRUE, not magnetic.

Parameters:
PointThe other point to measure the bearing from
Returns:
The bearing in degrees TRUE
double BearingTo ( FsLatLonPoint  Point )

Gets the bearing TO another point. The bearing will be in degrees TRUE, not magnetic.

Parameters:
PointThe other point to measure the bearing to
Returns:
The bearing in degrees TRUE
double DistanceFromInFeet ( FsLatLonPoint  Point )

Gets the distance between this point and another specified point in Feet.

Parameters:
PointThe other point from which to measure the distance
Returns:
The distance between this point and the other specified point in Feet
double DistanceFromInMetres ( FsLatLonPoint  Point )

Gets the distance between this point and another specified point in Metres.

Parameters:
PointThe other point from which to measure the distance
Returns:
The distance between this point and the other specified point in Metres
double DistanceFromInNauticalMiles ( FsLatLonPoint  Point )

Gets the distance between this point and another specified point in Nautical Miles.

Parameters:
PointThe other point from which to measure the distance
Returns:
The distance between this point and the other specified point in Nautical Miles
FsLatLonPoint OffsetByFeet ( double  Bearing,
double  Distance 
)

Creates a new point by moving the specified distance along the specified bearing.

Parameters:
BearingThe bearing from this point along which the new point is located in degrees TRUE
DistanceThe 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
FsLatLonPoint OffsetByMetres ( double  Bearing,
double  Distance 
)

Creates a new point by moving the specified distance along the specified bearing.

Parameters:
BearingThe bearing from this point along which the new point is located in degrees TRUE
DistanceThe 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:
BearingThe bearing from this point along which the new point is located in degrees TRUE
DistanceThe 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:
HemisphereAsTextDenote hemisphere using N,S,W or E. If false, west/south 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 representation of the Longitude and Latitude of this point in the specified format

Property Documentation

FsLatitude Latitude [get]

The latitude of the point.

FsLongitude Longitude [get]

The longitude of the point.