Ganners / gis-polygon

Polygon type with utilities (area and centroid calculations, ray casting for point-inside-polygon detection)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GIS Polygon Package

Implements a Polygon type, which contains a slice of Lat/Lng points and some useful utilities to operate on that data.

Functionality implemented allows:

  • Calculating the area of a polygon
  • Calculating the centroid of a polygon
  • Determining whether a given point is contained within a polygon

About

Polygon type with utilities (area and centroid calculations, ray casting for point-inside-polygon detection)


Languages

Language:Go 100.0%