Documentation ¶
Overview ¶
Package geom contains structs for representing a Point and a Triangle.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Polygon ¶ added in v1.1.7
type Polygon struct {
Points []Point
}
Polygon represents a n-gon with integer coordinates.
func (Polygon) Triangulate ¶ added in v1.1.7
type Triangle ¶
type Triangle struct {
Points [3]Point
}
Triangle represents a triangle with integer coordinates.
func NewTriangle ¶
NewTriangle returns a new Triangle with specified vertex coordinates.
Click to show internal directories.
Click to hide internal directories.