Documentation
¶
Overview ¶
rectangle in 2d space
Index ¶
- type Rect
- func (r Rect) Center() [2]int
- func (r Rect) Contain(p [2]int) bool
- func (r Rect) Enlarge(size [2]int) Rect
- func (r1 Rect) Intersection(r2 Rect) Rect
- func (r1 Rect) IsIn(r2 Rect) bool
- func (r1 Rect) IsOverlap(r2 Rect) bool
- func (r Rect) MakeRectBy4Driect(c [2]int, direct4 int) Rect
- func (r Rect) RelPos(x, y int) (int, int)
- func (r Rect) Shrink(size [2]int) Rect
- func (r Rect) ShrinkSym(n int) Rect
- func (r Rect) SizeVector() [2]int
- func (r1 Rect) Union(r2 Rect) Rect
- func (r Rect) X1() int
- func (r Rect) X2() int
- func (r Rect) Y1() int
- func (r Rect) Y2() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.