Added zero point
This commit is contained in:
parent
cac351f290
commit
fd7d29064c
@ -10,6 +10,9 @@ type PointF struct {
|
|||||||
X, Y float64
|
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.
|
// PtF is a shorthand function to create a point.
|
||||||
func PtF(x, y float64) PointF {
|
func PtF(x, y float64) PointF {
|
||||||
return PointF{X: x, Y: y}
|
return PointF{X: x, Y: y}
|
||||||
|
Loading…
Reference in New Issue
Block a user