Table of Contents

Class CapGeometry

Namespace
EncDotNet.S100.Datasets.Cap
Assembly
EncDotNet.S100.Datasets.Cap.dll

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

int

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

circle CapCircle

The circle.

vertices int

How many distinct vertices to use; at least 3.

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

a GeoPosition

One position.

b GeoPosition

The other.

Returns

double