Skip to content

JuliaGeometry/PolygonOps.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PolygonOps

Stable Dev

The objective of this package is to provide a set of generic polygon operations. There are two assumptions:

  • the container and points are both vector-like.
  • the first and last elements are equal.

This should provide generic implementations portable and extensible for packages such as GeometryTypes, GeometryBasics, and JuliaGeo.

Please see the docs for a list of exported functions.

Implements:

  • point-in-polygon
  • signed area (shoelace formula)
  • centroid

Planned:

  • simplification
  • booleans (ported from PolygonClipping.jl)
  • offset/insetting