NETGeographicLib  1.38
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Pages
Public Member Functions | List of all members
NETGeographicLib::RhumbLine Class Reference

.NET wrapper for GeographicLib::RhumbLine. More...

#include <NETGeographicLib/Rhumb.h>

Public Member Functions

 RhumbLine (GeographicLib::RhumbLine *pRhumbLine)
 Constructor. More...
 
 ~RhumbLine ()
 The destructor calls the finalizer. More...
 
void Position (double s12,[System::Runtime::InteropServices::Out] double% lat2,[System::Runtime::InteropServices::Out] double% lon2)
 

Properties

Inspector functions
double Latitude [get]
 
double Longitude [get]
 
double Azimuth [get]
 
double MajorRadius [get]
 
double Flattening [get]
 

Detailed Description

.NET wrapper for GeographicLib::RhumbLine.

This class allows .NET applications to access GeographicLib::RhumbLine.

Find a sequence of points on a single rhumb line.

RhumbLine facilitates the determination of a series of points on a single rhumb line. The starting point (lat1, lon1) and the azimuth azi12 are specified in the call to Rhumb::Line which returns a RhumbLine object. RhumbLine.Position returns the location of point 2 a distance s12 along the rhumb line.

There is no public constructor for this class. (Use Rhumb::Line to create an instance.) The Rhumb object used to create a RhumbLine must stay in scope as long as the RhumbLine.

Definition at line 198 of file Rhumb.h.

Constructor & Destructor Documentation

NETGeographicLib::RhumbLine::RhumbLine ( GeographicLib::RhumbLine pRhumbLine)

Constructor.

For internal use only. Developers should not call this constructor directly. Use the Rhumb::Line function to create RhumbLine objects.

Referenced by ~RhumbLine().

NETGeographicLib::RhumbLine::~RhumbLine ( )
inline

The destructor calls the finalizer.

Definition at line 217 of file Rhumb.h.

References RhumbLine().

Member Function Documentation

void NETGeographicLib::RhumbLine::Position ( double  s12,
[System::Runtime::InteropServices::Out] double%  lat2,
[System::Runtime::InteropServices::Out] double%  lon2 
)

Compute the position of point 2 which is a distance s12 (meters) from point 1.

Parameters
[in]s12distance between point 1 and point 2 (meters); it can be negative.
[out]lat2latitude of point 2 (degrees).
[out]lon2longitude of point 2 (degrees).

The values of lon2 and azi2 returned are in the range [−180°, 180°).

If s12 is large enough that the rhumb line crosses a pole, the longitude of point 2 is indeterminate (a NaN is returned for lon2).

Property Documentation

double NETGeographicLib::RhumbLine::Latitude
get
Returns
the latitude of point 1 (degrees).

Definition at line 245 of file Rhumb.h.

double NETGeographicLib::RhumbLine::Longitude
get
Returns
the longitude of point 1 (degrees).

Definition at line 250 of file Rhumb.h.

double NETGeographicLib::RhumbLine::Azimuth
get
Returns
the azimuth of the rhumb line (degrees).

Definition at line 255 of file Rhumb.h.

double NETGeographicLib::RhumbLine::MajorRadius
get
Returns
the equatorial radius of the ellipsoid (meters). This is the value inherited from the Rhumb object used in the constructor.

Definition at line 261 of file Rhumb.h.

double NETGeographicLib::RhumbLine::Flattening
get
Returns
the flattening of the ellipsoid. This is the value inherited from the Rhumb object used in the constructor.

Definition at line 267 of file Rhumb.h.


The documentation for this class was generated from the following file: