Versions in this module Expand all Collapse all v0 v0.1.0 Jul 29, 2024 Changes in this version + const HiPrecision + var BitTolerance = DefaultCompare().BitTolerance + var HiCMP = New(HiPrecision) + var NilCollection = (*geom.Collection)(nil) + var NilLineString = (*geom.LineString)(nil) + var NilMultiLineString = (*geom.MultiLineString)(nil) + var NilMultiPoint = (*geom.MultiPoint)(nil) + var NilMultiPoly = (*geom.MultiPolygon)(nil) + var NilPoint = (*geom.Point)(nil) + var NilPoly = (*geom.Polygon)(nil) + var Tolerance = DefaultCompare().Tolerance + func BitToleranceFor(tol float64) int64 + func CollectionerEqual(col1, col2 geom.Collectioner) bool + func Extent(extent1, extent2 [4]float64) bool + func FindMinIdx(ln Lesser) (min int) + func FindMinPointIdx(ln [][2]float64) (min int) + func Float(f1, f2 float64) bool + func Float64(f1, f2, tolerance float64, bitTolerance int64) bool + func Float64Slice(f1, f2 []float64, tolerance float64, bitTolerance int64) bool + func FloatSlice(f1, f2 []float64) bool + func GeomExtent(extent1, extent2 geom.Extenter) bool + func GeomPointEqual(p1, p2 geom.Point) bool + func GeometryEqual(g1, g2 geom.Geometry) bool + func IsEmptyGeo(geo geom.Geometry) (isEmpty bool) + func IsEmptyLines(lns [][][2]float64) bool + func IsEmptyPoint(pt [2]float64) bool + func IsEmptyPoints(pts [][2]float64) bool + func LineStringEqual(v1, v2 [][2]float64) bool + func LineStringerEqual(geo1, geo2 geom.LineStringer) bool + func MultiLineEqual(ml1, ml2 [][][2]float64) bool + func MultiLineStringerEqual(geo1, geo2 geom.MultiLineStringer) bool + func MultiPointEqual(p1, p2 [][2]float64) bool + func MultiPointerEqual(geo1, geo2 geom.MultiPointer) bool + func MultiPolygonerEqual(geo1, geo2 geom.MultiPolygoner) bool + func PointEqual(p1, p2 [2]float64) bool + func PointLess(p1, p2 [2]float64) bool + func PointerEqual(geo1, geo2 geom.Pointer) bool + func PointerLess(p1, p2 geom.Pointer) bool + func PolygonEqual(ply1, ply2 [][][2]float64) bool + func PolygonerEqual(geo1, geo2 geom.Polygoner) bool + func RotateToIdx(idx int, ln [][2]float64) + func RotateToLeftMostPoint(ln [][2]float64) + func Tolerances() (float64, int64) + func XYLessPoint(pt1, pt2 [2]float64) bool + type ByXY [][2]float64 + func (xy ByXY) Len() int + func (xy ByXY) Less(i, j int) bool + func (xy ByXY) Swap(i, j int) + type Compare struct + BitTolerance int64 + Tolerance float64 + func DefaultCompare() Compare + func New(tolerance float64) Compare + func NewForNumPrecision(prec int) Compare + func SetDefault(cmp Compare) Compare + func (Compare) IsEmptyGeo(geo geom.Geometry) bool + func (Compare) IsEmptyLines(lns [][][2]float64) bool + func (Compare) IsEmptyPoint(pt [2]float64) bool + func (Compare) IsEmptyPoints(pts [][2]float64) bool + func (cmp Compare) CollectionerEqual(col1, col2 geom.Collectioner) bool + func (cmp Compare) Extent(extent1, extent2 [4]float64) bool + func (cmp Compare) Float(f1, f2 float64) bool + func (cmp Compare) FloatSlice(f1, f2 []float64) bool + func (cmp Compare) GeomExtent(extent1, extent2 geom.Extenter) bool + func (cmp Compare) GeomPointEqual(p1, p2 geom.Point) bool + func (cmp Compare) GeometryEqual(g1, g2 geom.Geometry) bool + func (cmp Compare) LineEqual(ln1, ln2 geom.Line) bool + func (cmp Compare) LineStringEqual(v1, v2 [][2]float64) bool + func (cmp Compare) LineStringerEqual(geo1, geo2 geom.LineStringer) bool + func (cmp Compare) MultiLineEqual(ml1, ml2 [][][2]float64) bool + func (cmp Compare) MultiLineStringerEqual(geo1, geo2 geom.MultiLineStringer) bool + func (cmp Compare) MultiPointEqual(p1, p2 [][2]float64) bool + func (cmp Compare) MultiPointerEqual(geo1, geo2 geom.MultiPointer) bool + func (cmp Compare) MultiPolygonerEqual(geo1, geo2 geom.MultiPolygoner) bool + func (cmp Compare) PointEqual(p1, p2 [2]float64) bool + func (cmp Compare) PointLess(p1, p2 [2]float64) bool + func (cmp Compare) PointerEqual(geo1, geo2 geom.Pointer) bool + func (cmp Compare) PointerLess(p1, p2 geom.Pointer) bool + func (cmp Compare) PolygonEqual(ply1, ply2 [][][2]float64) bool + func (cmp Compare) PolygonerEqual(geo1, geo2 geom.Polygoner) bool + func (cmp Compare) Tolerances() (float64, int64) + type Lesser interface + Len func() int + Less func(i, j int) bool + type PointByXY []geom.Point + func (xy PointByXY) Len() int + func (xy PointByXY) Less(i, j int) bool + func (xy PointByXY) Swap(i, j int)