CodingLand/pkg/internal/land/vector2d.go
2024-07-18 17:21:25 +08:00

10 lines
119 B
Go

package land
type Vector2D struct {
X, Y float64
}
func (p Vector2D) IsZero() bool {
return p.X == 0 && p.Y == 0
}