Versions in this module Expand all Collapse all v0 v0.1.0 Jul 29, 2024 Changes in this version + func MustNew(clipbox *geom.Extent, geo geom.Geometry) planar.HitMapper + func New(clipbox *geom.Extent, geo geom.Geometry) (planar.HitMapper, error) + type Always planar.Label + const Inside + const Outside + func (a Always) Area() float64 + func (a Always) Extent() [4]float64 + func (a Always) LabelFor(_ [2]float64) planar.Label + type ByAreaDec []planar.HitMapper + func (hm ByAreaDec) Len() int + func (hm ByAreaDec) Less(i, j int) bool + func (hm ByAreaDec) Swap(i, j int) + type OrderedHM []planar.HitMapper + func NewOrderedHM(hms ...planar.HitMapper) OrderedHM + func (hms OrderedHM) Area() float64 + func (hms OrderedHM) Extent() [4]float64 + func (hms OrderedHM) LabelFor(pt [2]float64) planar.Label + type PolygonHM struct + func MustNewFromPolygons(clipbox *geom.Extent, plys ...[][][2]float64) *PolygonHM + func NewFromPolygons(clipbox *geom.Extent, plys ...[][][2]float64) (*PolygonHM, error) + func (hm *PolygonHM) Area() float64 + func (hm *PolygonHM) Extent() [4]float64 + func (hm *PolygonHM) LabelFor(pt [2]float64) planar.Label + type Ring struct + Label planar.Label + func NewRing(ring [][2]float64, label planar.Label) *Ring + func (r *Ring) MaxX() float64 + func (r *Ring) MaxY() float64 + func (r *Ring) MinX() float64 + func (r *Ring) MinY() float64 + func (r Ring) ContainsPoint(pt [2]float64) bool