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