gg/point.go

12 lines
153 B
Go
Raw Normal View History

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