geom/point.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
239 B
Go

package geom
import (
_image "image"
)
// Point is exposing the standard library image.Point in the geom package.
type Point _image.Point
// Pt is a shorthand function to create a point.
func Pt(x, y int) Point {
return Point{x, y}
}