Public Member Functions | Static Public Member Functions | Properties

FsLatLonQuadrilateral Struct Reference

Represents an Quadrilateral area in FS bounded by four Latitude/Longitude coordinates. Note that only Convex Quadrilateral shapes will work properly. Concave shapes will not. More...

Collaboration diagram for FsLatLonQuadrilateral:

List of all members.

Public Member Functions

 FsLatLonQuadrilateral (FsLatLonPoint P0, FsLatLonPoint P1, FsLatLonPoint P2, FsLatLonPoint P3)
 Constructs a new FsLatLonQuadrilateral by specifying 4 points that define the corners of the Quadrilateral. The points do not need to be in a specific order.
bool ContainsPoint (FsLatLonPoint point)
 Calculates whether or not the given point in contained in this Quadrilateral.
override string ToString ()
 The four latitude and longitude points (corners) 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 four latitude and longitude points (corners) represented as a string in the specified format.

Static Public Member Functions

static FsLatLonQuadrilateral ForRunway (FsLatLonPoint ThresholdCentre, Double HeadingTrue, double WidthInFeet, double LengthInFeet)
 Creates a new bounding rectangle for a runway given the common information provided in MakeRunways.exe by Pete Dowson.

Properties

FsLatLonPoint NE [get]
 A FsLatLonPoint representing the North Eastern corner of this Quadrilateral.
FsLatLonPoint SE [get]
 A FsLatLonPoint representing the South Eastern corner of this Quadrilateral.
FsLatLonPoint SW [get]
 A FsLatLonPoint representing the South Western corner of this Quadrilateral.
FsLatLonPoint NW [get]
 A FsLatLonPoint representing the North Western corner of this Quadrilateral.

Detailed Description

Represents an Quadrilateral area in FS bounded by four Latitude/Longitude coordinates. Note that only Convex Quadrilateral shapes will work properly. Concave shapes will not.


Constructor & Destructor Documentation

Constructs a new FsLatLonQuadrilateral by specifying 4 points that define the corners of the Quadrilateral. The points do not need to be in a specific order.

Parameters:
P0One of the four corner points of the Quadrilateral
P1One of the four corner points of the Quadrilateral
P2One of the four corner points of the Quadrilateral
P3One of the four corner points of the Quadrilateral

Member Function Documentation

bool ContainsPoint ( FsLatLonPoint  point )

Calculates whether or not the given point in contained in this Quadrilateral.

Parameters:
pointThe point to test
Returns:
True if the given point is contained within this Quadrilateral.
static FsLatLonQuadrilateral ForRunway ( FsLatLonPoint  ThresholdCentre,
Double  HeadingTrue,
double  WidthInFeet,
double  LengthInFeet 
) [static]

Creates a new bounding rectangle for a runway given the common information provided in MakeRunways.exe by Pete Dowson.

Parameters:
HeadingTrueThe TRUE heading of the runway in Degrees
ThresholdCentreThe Lon/Lat point of the centre of the runway threshold
WidthInFeetThe width of the runway in Feet
LengthInFeetThe length of the runway in Feet
Returns:
An FsLatLonQuadrilateral representing the four corners of the runway
override string ToString (  )

The four latitude and longitude points (corners) 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 the four corners of this Quadrilateral in the default format
string ToString ( bool  HemisphereAsText,
string  DetailLevel,
short  DecimalPlaces 
)

The four latitude and longitude points (corners) 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 the four corners of this Quadrilateral in the specified format

Property Documentation

FsLatLonPoint NE [get]

A FsLatLonPoint representing the North Eastern corner of this Quadrilateral.

FsLatLonPoint NW [get]

A FsLatLonPoint representing the North Western corner of this Quadrilateral.

FsLatLonPoint SE [get]

A FsLatLonPoint representing the South Eastern corner of this Quadrilateral.

FsLatLonPoint SW [get]

A FsLatLonPoint representing the South Western corner of this Quadrilateral.