diff --git a/pointf.go b/pointf.go index c18a04d..0a397a7 100644 --- a/pointf.go +++ b/pointf.go @@ -10,6 +10,9 @@ type PointF struct { X, Y float64 } +// ZeroPtF is initialized on (0, 0). +var ZeroPtF = PointF{X: 0, Y: 0} + // PtF is a shorthand function to create a point. func PtF(x, y float64) PointF { return PointF{X: x, Y: y}