Documentation ¶
Overview ¶
Package normgeom contains similar structs to the geom package, except all coordinates are normalized between 0 and 1.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NormPointGroup ¶
type NormPointGroup []NormPoint
NormPointGroup represents a group of NormPoint's.
func (NormPointGroup) Copy ¶
func (p NormPointGroup) Copy() NormPointGroup
Copy creates a deep copy of a NormPointGroup.
func (NormPointGroup) Set ¶
func (p NormPointGroup) Set(other NormPointGroup)
Set sets a NormPointGroup to another NormPointGroup. The lengths of the NormPointGroup's cannot be different.
type NormPolygon ¶ added in v1.1.7
type NormPolygon struct {
Points []NormPoint
}
Polygon represents a n-gon with integer coordinates.
type NormTriangle ¶
type NormTriangle struct {
Points [3]NormPoint
}
NormTriangle represents a triangle with normalized coordinates.
func NewNormTriangle ¶
func NewNormTriangle(x0, y0, x1, y1, x2, y2 float64) NormTriangle
NewNormTriangle returns a new NormTriangle.
Click to show internal directories.
Click to hide internal directories.