C# Class MapAround.Geography.EllipticAlgorithms

Implements basic algorithms on the spheroid's surface.
Afficher le fichier Open project: gkrsu/maparound.core

Méthodes publiques

Свойство Type Description
DefaultEllipsoid MapAround.CoordinateSystems.Ellipsoid

Méthodes publiques

Méthode 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 méthode

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

GetConvexHull() public static méthode

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
Résultat IList

GetPointsCentroid() public static méthode

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
Résultat 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
Résultat MapAround.CoordinateSystems.Ellipsoid