| 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.
Generally, I’m using the code for a while to gain some confidence that I’ve not missed an important detail.
Before v1.0.0 I plan to remove the following functions:
| Function | Recommended substitute |
|---|---|
| (*polygon.Shapes) Inflate() | (*polymark.Pen) Inflate() |
| (*polygon.Shapes) Negative() | (*polymark.Pen) Negative() |
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.
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.