CodingLand/pkg/internal/land/vector2d.go

10 lines
119 B
Go
Raw Normal View History

2024-07-18 05:59:06 +00:00
package land
type Vector2D struct {
X, Y float64
}
2024-07-18 09:21:25 +00:00
func (p Vector2D) IsZero() bool {
return p.X == 0 && p.Y == 0
}