rect

package
v0.0.0-...-0d1a6d2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2018 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rect

type Rect struct {
	X int
	Y int
	W int
	H int
}

func FromRectangle

func FromRectangle(r image.Rectangle) Rect

func (Rect) Contains

func (rect Rect) Contains(p image.Point) bool

func (*Rect) Intersect

func (r0 *Rect) Intersect(r1 *Rect) bool

func (*Rect) Max

func (rect *Rect) Max() image.Point

func (*Rect) Min

func (rect *Rect) Min() image.Point

func (*Rect) Rectangle

func (r *Rect) Rectangle() image.Rectangle

func (Rect) Scaled

func (rect Rect) Scaled(scaling float64) Rect

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL