point

package
Version: v0.0.0-...-d6647d3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL