Sander Schobers
26bac636bc
- Includes PointF, RectangleF and PolygonF. Additional it includes the 32 bit floating point PointF32 and wrappers to image.Point and image.Rectangle.
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))
|
|
}
|