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
239 B
Go
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}
|
|
}
|