C# Класс MapAround.Geography.EllipticAlgorithms

Implements basic algorithms on the spheroid's surface.
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
DefaultEllipsoid MapAround.CoordinateSystems.Ellipsoid

Открытые методы

Метод Описание
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.

Описание методов

AngularDistance() публичный статический Метод

Computes an angular distance between two points on the unit sphere.
public static AngularDistance ( GeoPoint p1, GeoPoint p2 ) : double
p1 GeoPoint
p2 GeoPoint
Результат double

GetConvexHull() публичный статический Метод

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
Результат IList

GetPointsCentroid() публичный статический Метод

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
Результат GeoPoint

Описание свойств

DefaultEllipsoid публичное статическое свойство

A default instance of the MapAround.CoordinateSystems.Ellipsoid which is used by elliptic algorithms. Always equals to WGS84.
public static Ellipsoid,MapAround.CoordinateSystems DefaultEllipsoid
Результат MapAround.CoordinateSystems.Ellipsoid