gg/point.go
2016-02-20 23:11:34 -05:00

12 lines
153 B
Go

package gg
import "golang.org/x/image/math/fixed"
type Point struct {
X, Y float64
}
func (p Point) Fixed() fixed.Point26_6 {
return fp(p.X, p.Y)
}