Documentation ¶ Index ¶ type Point func (p Point) Add(a Point) Point func (p Point) AddDirection(d direction.Direction) Point func (p Point) Distance(other Point) int func (p Point) Inside(min Point, max Point) bool Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Point ¶ type Point struct { X int `json:"x"` Y int `json:"y"` } func (Point) Add ¶ func (p Point) Add(a Point) Point func (Point) AddDirection ¶ func (p Point) AddDirection(d direction.Direction) Point func (Point) Distance ¶ func (p Point) Distance(other Point) int func (Point) Inside ¶ func (p Point) Inside(min Point, max Point) bool Source Files ¶ View all Source files point.go Click to show internal directories. Click to hide internal directories.