package
Version:
v0.0.0-...-e95280a
Opens a new window with list of versions in this module.
Published: Jun 19, 2021
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Builder represents a rectangle builder
NewBuilder creates a new builder instance
type Rectangle interface {
Position() Vec2
Dimension() Vec2
String() string
}
Rectangle represents a rectangle of integers
Vec2 represents a vector with 2 elements
Compare returns true if the two vectors are the same, false otehrwise
String returns the string representation of the vector
X returns the value at index 0
Y returns the value at index 1
Source Files
¶
Click to show internal directories.
Click to hide internal directories.