Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Rect ¶
Rect holds four int coordinates describing the upper and lower bounds of a rectangle. Rect may be created from outer bounds or from position, width, and height.
func RectNewLTRB ¶
RectNewLTRB constructs a Rect from four coordinates.
func RectNewXYWH ¶
RectNewXYWH constructs a Rect from a Top Left coordinate (x, y) and dimensions (width and height).
func (Rect) TranslateForPos ¶
Click to show internal directories.
Click to hide internal directories.