Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GeoPolygon

A GeoPolygon in 2D Space (altitudes will be ignored). Coordinates are expected in counter-clockwise order, for convex polygons a sorting is available. Clockwise ordered or selfintersecting Polygons might lead to no or unexpected results.

beta

@internal

Hierarchy

  • GeoPolygon

Implements

Index

Constructors

Accessors

Methods

Constructors

constructor

  • Creates a GeoPolygon instance

    default

    false

    Parameters

    • coordinates: GeoPolygonCoordinates

      An array of GeoCoordinates acting as the Vertices of the Polygon.

    • Default value needsSort: boolean = false

      If true it will sort the coordinates in ccw order, this will only result correctly for convex polygons @default false

    • Default value needsWrapping: boolean = false

      If true it will wrap around coordinates crossing the antemeridian. Only supported for polygons with sides that don't span more than 180 degrees longitude.

    Returns GeoPolygon

Accessors

coordinates

Methods

getCentroid

getGeoBoundingBox

Generated using TypeDoc