Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Vertex representing lack of vertex (or bad vertex)
Functions ¶
This section is empty.
Types ¶
type Beachsection ¶
type Beachsection struct {
// contains filtered or unexported fields
}
type BeachsectionPtrs ¶
type BeachsectionPtrs []*Beachsection
type Cell ¶
type Cell struct {
// Site of the cell
Site Vertex
// Array of halfedges sorted counterclockwise
Halfedges []*Halfedge
}
Cell of voronoi diagram
type Edge ¶
type Edge struct {
// Cell on the left
LeftCell *Cell
// Cell on the right
RightCell *Cell
// Start Vertex
Va EdgeVertex
// End Vertex
Vb EdgeVertex
}
Edge structure
func (*Edge) GetOtherCell ¶
func (*Edge) GetOtherEdgeVertex ¶
func (e *Edge) GetOtherEdgeVertex(v Vertex) EdgeVertex
type EdgeVertex ¶
type Halfedge ¶
Halfedge (directed edge)
func (*Halfedge) GetEndpoint ¶
func (*Halfedge) GetStartpoint ¶
type VerticesByY ¶
type VerticesByY struct{ Vertices }
Used for sorting vertices along the Y axis
func (VerticesByY) Less ¶
func (s VerticesByY) Less(i, j int) bool
Click to show internal directories.
Click to hide internal directories.