geom/pointf32.go
Sander Schobers 386eb28f11 Added Matrix3x3F32 and Vector3F32.
Added shorthand for creating a PointF32.
2018-07-18 20:05:06 +02:00

12 lines
233 B
Go

package geom
// PointF32 is an X, Y coordinate pair (floating point, 32 bits).
type PointF32 struct {
X, Y float32
}
// PtF32 is a shorthand function to create a point.
func PtF32(x, y float32) PointF32 {
return PointF32{x, y}
}