Documentation
¶
Index ¶
- type Rect2
- func (r *Rect2) ABS() Rect2
- func (r *Rect2) DistanceTo(point Vector2) float64
- func (r *Rect2) Encloses(rect Rect2) bool
- func (r Rect2) Expand(point Vector2) Rect2
- func (r *Rect2) ExpandTo(point Vector2)
- func (r *Rect2) GetArea() float64
- func (r *Rect2) GetCenter() Vector2
- func (r *Rect2) GetEnd() Vector2
- func (r Rect2) Grow(delta float64) Rect2
- func (r *Rect2) GrowBy(delta float64)
- func (r *Rect2) HasArea() bool
- func (r *Rect2) HasPoint(point Vector2) bool
- func (r *Rect2) Intersection(rect Rect2) Rect2
- func (r *Rect2) Intersects(rect Rect2, include_borders ...bool) bool
- func (r *Rect2) IsEqualApprox(rect Rect2) bool
- func (r *Rect2) IsFinite() bool
- func (r *Rect2) Merge(rect Rect2) Rect2
- func (r *Rect2) Round() Rect2
- type Vector2
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Rect2 ¶
func (*Rect2) DistanceTo ¶
func (*Rect2) Intersection ¶
Returns the intersection between two Rect2s or an empty Rect2 if there is no intersection.
func (*Rect2) IsEqualApprox ¶
Click to show internal directories.
Click to hide internal directories.