The highest tagged major version is
v4.
package
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: Jul 17, 2017
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 12
Opens a new window with list of known importers.
Documentation
¶
type Point struct {
X, Y int
}
Point is a basic integer pair
NewPoint returns an (X,Y) point structure
Distance is the euclidean distance function
Rect is a basic integer pair with width / height
func NewRect(x, y, x2, y2 int) Rect
NewRect returns an (X,Y):(X2,Y2) rectangle
func NewRectWH(x, y, w, h int) Rect
NewRectWH returns an (X,Y):(X+W,Y+H) rectangle
ShuffleRects is a utility function to randomize the order of a rectangle set
Source Files
¶
Click to show internal directories.
Click to hide internal directories.