Skip to main content

Function: clipRingToCircle()

clipRingToCircle(ring, project, radius, arcStepDegrees): Vertex[][]

Defined in: src/mobjects/geo/clipCircle.ts:248

Clip a polygon ring to a disc projection's mappable circle.

Parameters​

ring​

GeoLinearRing

The ring's lon/lat positions (a closing duplicate is allowed).

project​

GeoProjection

The clipping projection (its clipRadius must be set).

radius​

number

The disc radius (project.clipRadius).

arcStepDegrees​

number = 2

Angular spacing of inserted limb-arc points. Default 2.

Returns​

Vertex[][]

The clipped geometry as zero or more projected rings. Empty when the ring is entirely on the hidden hemisphere; one ring when it is fully visible or cut into a single piece; several when the limb cuts it into pieces.