C# Class csShared.Geo.SphericalMercator

Exibir arquivo Open project: TNOCS/csTouch

Public Methods

Method Description
Distance ( KmlPoint point1, KmlPoint point2 ) : double
Distance ( MapPoint mp1, MapPoint mp2 ) : double
Distance ( Point point1, Point point2 ) : double
Distance ( double lat1, double lon1, double lat2, double lon2, char unit ) : double
FromKmlPoint ( KmlPoint p ) : Point
FromLonLat ( double lon, double lat ) : Point
GetKmlPoint ( double lon, double lat ) : KmlPoint
ToLonLat ( double x, double y ) : KmlPoint

Private Methods

Method Description
Deg2Rad ( double deg ) : double
Rad2Deg ( double rad ) : double

Method Details

Distance() public static method

public static Distance ( KmlPoint point1, KmlPoint point2 ) : double
point1 KmlPoint
point2 KmlPoint
return double

Distance() public static method

public static Distance ( MapPoint mp1, MapPoint mp2 ) : double
mp1 MapPoint
mp2 MapPoint
return double

Distance() public static method

public static Distance ( Point point1, Point point2 ) : double
point1 Point
point2 Point
return double

Distance() public static method

public static Distance ( double lat1, double lon1, double lat2, double lon2, char unit ) : double
lat1 double
lon1 double
lat2 double
lon2 double
unit char
return double

FromKmlPoint() public static method

public static FromKmlPoint ( KmlPoint p ) : Point
p KmlPoint
return Point

FromLonLat() public static method

public static FromLonLat ( double lon, double lat ) : Point
lon double
lat double
return Point

GetKmlPoint() public static method

public static GetKmlPoint ( double lon, double lat ) : KmlPoint
lon double
lat double
return KmlPoint

ToLonLat() public static method

public static ToLonLat ( double x, double y ) : KmlPoint
x double
y double
return KmlPoint