rect

package
v0.0.0-...-b8e8dfc Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2017 License: MIT Imports: 1 Imported by: 3

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