C# Class MapAround.Geography.EllipticAlgorithms

Implements basic algorithms on the spheroid's surface.
显示文件 Open project: gkrsu/maparound.core

Public Properties

Property Type Description
DefaultEllipsoid MapAround.CoordinateSystems.Ellipsoid

Public Methods

Method Description
AngularDistance ( GeoPoint p1, GeoPoint p2 ) : double

Computes an angular distance between two points on the unit sphere.

GetConvexHull ( IEnumerable points ) : IList

Computes a convex hull of the specified points.

GetPointsCentroid ( IEnumerable points ) : GeoPoint

Calculates the center of mass of points. Calculated as the point on the surface of the ellipsoid, which "points to" a vector, which is the sum of the vectors coming from the center of the ellipsoid to each of the points.

Masses of points are set equal.

Method Details

AngularDistance() public static method

Computes an angular distance between two points on the unit sphere.
public static AngularDistance ( GeoPoint p1, GeoPoint p2 ) : double
p1 GeoPoint
p2 GeoPoint
return double

GetConvexHull() public static method

Computes a convex hull of the specified points.
public static GetConvexHull ( IEnumerable points ) : IList
points IEnumerable Enumerator of coordinates for which convex hull should be computed
return IList

GetPointsCentroid() public static method

Calculates the center of mass of points. Calculated as the point on the surface of the ellipsoid, which "points to" a vector, which is the sum of the vectors coming from the center of the ellipsoid to each of the points.
Masses of points are set equal.
public static GetPointsCentroid ( IEnumerable points ) : GeoPoint
points IEnumerable
return GeoPoint

Property Details

DefaultEllipsoid public_oe static_oe property

A default instance of the MapAround.CoordinateSystems.Ellipsoid which is used by elliptic algorithms. Always equals to WGS84.
public static Ellipsoid,MapAround.CoordinateSystems DefaultEllipsoid
return MapAround.CoordinateSystems.Ellipsoid