Class CapGeometry
Geometry helpers for CAP areas.
public static class CapGeometry
- Inheritance
-
CapGeometry
- Inherited Members
Fields
CircleVertices
The number of vertices a CAP circle is drawn with.
public const int CircleVertices = 64
Field Value
Methods
CircleToPolygon(CapCircle, int)
The polygon a CAP circle is drawn as: CircleVertices
vertices at the circle's radius from its centre on a spherical Earth,
clockwise from north, closed (the first vertex repeated at the end).
public static IReadOnlyList<GeoPosition> CircleToPolygon(CapCircle circle, int vertices = 64)
Parameters
Returns
- IReadOnlyList<GeoPosition>
The closed ring, WGS-84.
DistanceKilometres(GeoPosition, GeoPosition)
The great-circle distance between two positions on a spherical Earth, in kilometres.
public static double DistanceKilometres(GeoPosition a, GeoPosition b)
Parameters
aGeoPositionOne position.
bGeoPositionThe other.