C# Class MapAround.Geography.GnomonicProjection

Gnomonic projection. This class, unlike MapAround.CoordinateSystems.Transformations.Gnomonic, is designed for internal use.
Exibir arquivo Open project: gkrsu/maparound.core Class Usage Examples

Public Methods

Method Description
GetCenter ( IEnumerable points, double &centerLat, double &centerLon ) : void

Calculates the longitude and latitude of the projection center for an array of points on the ellipsoid.

GetCenter ( double latLonSequence, double &centerLat, double &centerLon ) : void

Calculates the longitude and latitude of the center of projection to the passed values ​​of latitudes and longitudes.

GnomonicProjection ( double centerLongitude, double centerLatitude ) : System

Instantiates GnommonicProjection.

Project ( double latitude, double longitude, double &x, double &y ) : void

Calculates the coordinates of the point in the projection plane.

Unproject ( double x, double y, double &lat, double &lon ) : void

Calculates the latitude and longitude points.

Private Methods

Method Description
getMinEntryIndex ( double values ) : int

Method Details

GetCenter() public static method

Calculates the longitude and latitude of the projection center for an array of points on the ellipsoid.
public static GetCenter ( IEnumerable points, double &centerLat, double &centerLon ) : void
points IEnumerable An array of points on the ellipsoid
centerLat double The output value of latitude
centerLon double The output value of the longitude
return void

GetCenter() public static method

Calculates the longitude and latitude of the center of projection to the passed values ​​of latitudes and longitudes.
public static GetCenter ( double latLonSequence, double &centerLat, double &centerLon ) : void
latLonSequence double Array of real numbers that contains the latitude and longitude /// (to be completed in the form of a sequence of pairs: "latitude", "longitude")
centerLat double The output value of latitude
centerLon double The output value of the longitude
return void

GnomonicProjection() public method

Instantiates GnommonicProjection.
public GnomonicProjection ( double centerLongitude, double centerLatitude ) : System
centerLongitude double Longitude of projection center
centerLatitude double Latitude of projection center
return System

Project() public method

Calculates the coordinates of the point in the projection plane.
public Project ( double latitude, double longitude, double &x, double &y ) : void
latitude double Latitude of the
longitude double Longitude points
x double X coordinate in the plane of projection
y double Y-coordinate in the plane of projection
return void

Unproject() public method

Calculates the latitude and longitude points.
public Unproject ( double x, double y, double &lat, double &lon ) : void
x double X coordinate in the plane of projection
y double Y-coordinate in the plane of projection
lat double Latitude of the
lon double Longitude points
return void