Documentation ¶
Index ¶
- Variables
- type Insets
- type Point
- type Rect
- func (r Rect) AlignIn(b Rect, alignment geom.Alignment) Rect
- func (r Rect) Bottom() float32
- func (r Rect) Center() Point
- func (r Rect) CenterIn(o Rect) Rect
- func (r Rect) CenterX() float32
- func (r Rect) CenterY() float32
- func (r Rect) ContainsPoint(pointX, pointY float32) bool
- func (r Rect) Empty() bool
- func (r Rect) EqualsTo(other Rect) bool
- func (r Rect) FitIn(b Rect, mode geom.FitMode, alignment geom.Alignment) Rect
- func (r Rect) Intersect(r2 Rect) bool
- func (r Rect) IntersectWithCircle(circleX, circleY, circleRadius float32) bool
- func (r Rect) Intersection(s Rect) Rect
- func (r Rect) IsContainedIn(b Rect) bool
- func (r Rect) Left() float32
- func (r Rect) MaxPoint() Point
- func (r Rect) MinPoint() Point
- func (r Rect) MoveTo(x, y float32) Rect
- func (r Rect) ResizeTo(w, h float32) Rect
- func (r Rect) Right() float32
- func (r Rect) Scale(factor float32) Rect
- func (r Rect) ShrinkByInsets(i Insets) Rect
- func (r Rect) ShrinkByInt(i float32) Rect
- func (r Rect) Size() Size
- func (r Rect) String() string
- func (r Rect) ToRectangle() image.Rectangle
- func (r Rect) Top() float32
- func (r Rect) Translate(x, y float32) Rect
- func (r Rect) TranslateInt(x, y int) Rect
- func (r Rect) TranslatePoint(point Point) Rect
- func (r Rect) UnionWith(other Rect) Rect
- type Size
Constants ¶
This section is empty.
Variables ¶
View Source
var NullPoint = Point{X: -math.MaxFloat32, Y: -math.MaxFloat32}
Functions ¶
This section is empty.
Types ¶
type Rect ¶
type Rect struct {
X, Y, W, H float32
}
func RectFromArray ¶
func RectFromInt ¶
func RectFromRectangle ¶
func (Rect) ContainsPoint ¶
func (Rect) IntersectWithCircle ¶
func (Rect) Intersection ¶
func (Rect) IsContainedIn ¶
func (Rect) ShrinkByInsets ¶
func (Rect) ShrinkByInt ¶
func (Rect) ToRectangle ¶
func (Rect) TranslateInt ¶
func (Rect) TranslatePoint ¶
Click to show internal directories.
Click to hide internal directories.