geo

package module
v0.0.0-...-ae8fcd9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EdgeIntersection

func EdgeIntersection(a, b s2.Edge) s2.Point

EdgeIntersection returns the intersection point between the edges (a-b) and (c-d).

func FitLoop

func FitLoop(loop *s2.Loop, acc s2.CellUnion, maxLevel int) s2.CellUnion

FitLoop returns an un-normalised CellUnion approximating the surface covered by the loop, with the smallest cell being maxLevel.

func FitLoopDo

func FitLoopDo(loop *s2.Loop, maxLevel int, fn func(s2.CellID) bool)

FitLoopDo iterates over the cells of a loop and their LoopOverlap, with the smallest cell being maxLevel. Return false in the iterator to stop the loop.

func LoopIntersectionWithCell

func LoopIntersectionWithCell(loop *s2.Loop, cell s2.Cell) []*s2.Loop

LoopIntersectionWithCell returns sub-loops which contain the intersection areas between the loop and a cell.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL