geometry

GoDoc

An efficient 2D geometry library for Go.

  • Features Point, Rect, Line, and Polygon geometry types
  • Operations such as Intersects, Contains, and Point-in-polygon
  • Support for geometry indexing

GitHub

https://github.com/tidwall/geometry