14 lines
304 B
Go
14 lines
304 B
Go
|
package geom
|
||
|
|
||
|
import (
|
||
|
_image "image"
|
||
|
)
|
||
|
|
||
|
// Rectangle is exposing the standard library image.Rectangle in the geom package.
|
||
|
type Rectangle _image.Rectangle
|
||
|
|
||
|
// Rect is a shorthand function to create a rectangle.
|
||
|
func Rect(x0, y0, x1, y1 int) Rectangle {
|
||
|
return Rectangle(_image.Rect(x0, y0, x1, y1))
|
||
|
}
|