FSUIPC Client DLL
.NET interface for FSUIPC
FsLatLonLineSegment Class Reference

Represents a line segment on the Earth that runs between. More...

Public Member Functions

 FsLatLonLineSegment (FsLatLonPoint Point1, FsLatLonPoint Point2)
 Creates a FsLatLonLineSegment from 2 FsLatLonPoints.
 
 FsLatLonLineSegment (double Point1Lat, double Point1Lon, double Point2Lat, double Point2Lon)
 Creates a FsLatLonLineSegment from decimal degree values.
 
bool ContainsPoint (FsLatLonPoint Point)
 Tests if a point is on the line segment.
 
FsLatLonPointGetIntersection (FsLatLonLineSegment Line)
 Checks if a given line segment intersects this line segment.
 

Properties

FsLatLonPoint P1 [get]
 A point that represents one of the ends of the line segment.
 
FsLatLonPoint P2 [get]
 A point that represents one of the ends of the line segment.
 

Detailed Description

Represents a line segment on the Earth that runs between.

Constructor & Destructor Documentation

◆ FsLatLonLineSegment() [1/2]

FsLatLonLineSegment ( FsLatLonPoint Point1,
FsLatLonPoint Point2 )
inline

Creates a FsLatLonLineSegment from 2 FsLatLonPoints.

Parameters
Point1A FsLatLonPoint representing the start of the line segment
Point2A FsLatLonPoint representing the end of the line segment

◆ FsLatLonLineSegment() [2/2]

FsLatLonLineSegment ( double Point1Lat,
double Point1Lon,
double Point2Lat,
double Point2Lon )
inline

Creates a FsLatLonLineSegment from decimal degree values.

Parameters
Point1LatThe Latitude of the point representing the start of the line segment (in Decimal Degrees)
Point1LonThe Longitude of the point representing the start of the line segment (in Decimal Degrees)
Point2LatThe Latitude of the point representing the ebd of the line segment (in Decimal Degrees)
Point2LonThe Longitude of the point representing the end of the line segment (in Decimal Degrees)

Member Function Documentation

◆ ContainsPoint()

bool ContainsPoint ( FsLatLonPoint Point)
inline

Tests if a point is on the line segment.

Parameters
Point
Returns

◆ GetIntersection()

FsLatLonPoint? GetIntersection ( FsLatLonLineSegment Line)
inline

Checks if a given line segment intersects this line segment.

Parameters
LineThe line segment to check for intersection
Returns
The FsLatLonPoint of the intersection of the two line segments. Returns no value if the lines do not intersect