geom/rectangle.go
Sander Schobers 26bac636bc Initial version of the geom package
- Includes PointF, RectangleF and PolygonF. Additional it includes the 32 bit floating point PointF32 and wrappers to image.Point and image.Rectangle.
2017-11-01 06:51:41 +01:00

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))
}