Documentation ¶
Overview ¶
Package intgeom stores primitives for integer geometry
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Point ¶
type Point struct {
X, Y int
}
Point is a basic integer pair
func (Point) GreaterOf ¶ added in v1.4.0
GreaterOf returns a point of the highest X and Y component in the inputs.
func (Point) LesserOf ¶ added in v1.4.0
LesserOf returns a point of the lowest X and Y component in the inputs.
func (Point) PointsBetween ¶ added in v1.4.0
PointsBetween returns a line of points connecting p and p2
type Rect ¶
Rect is a basic integer pair with width / height
func ShuffleRects ¶
ShuffleRects is a utility function to randomize the order of a rectangle set
Click to show internal directories.
Click to hide internal directories.