gilo/internal/gilo/point.go
Timothy Warren 0569ede1a5
All checks were successful
timw4mail/gilo/pipeline/head This commit looks good
Comments and import fixes
2021-04-13 14:54:44 -04:00

20 lines
250 B
Go

// Package gilo Point struct
package gilo
type Point struct {
X int
Y int
}
func DefaultPoint() *Point {
return &Point{0, 0}
}
func NewPoint(x, y int) *Point {
return &Point{x, y}
}
func (p *Point) Clone() *Point {
return &Point{p.X, p.Y}
}