| Package import | "zappem.net/pub/math/polygon" |
|---|---|
| Documentation | https://pkg.go.dev/zappem.net/pub/math/polygon |
| Sources | https://github.com/tinkerator/polygon |
This package provides routines for 2D polygons. That is non self-intersecting multi-edged shapes with more than 2 vertex points.
The API provided by this package is avalble using go doc
zappem.net/pub/math/polygon. It can also be browsed on the
go.dev website: package
zappem.net/pub/math/polygon.
See the https://zappem.net/pub/project/polygons/ example.
Here are some known issues potentially gating release of v1.0.0.
The polymark spirals
example generates polygon.Shapes that can take some time to
Union.
Also, running svgpoly
outlines on these spirals
has a really hard time --inverse 5 generating reliable inverses.
The glase example has support
for a LASER caution icon. Ideally that could be Uniond but it
seems to require it be dealt with in two parts.
Some things to look into after v1.0.0.
The polygon package is distributed with the same BSD 3-clause
license as that used by golang itself.
Use the github polygon bug
tracker.