Documentation ¶
Index ¶
- type Point
- func (p *Point) Abs() *Point
- func (p *Point) Copy() *Point
- func (p *Point) Distance(x, y int) int
- func (p *Point) DistanceTo(o *Point) int
- func (p *Point) Equal(to ...int) bool
- func (p *Point) EqualTo(o *Point) bool
- func (p *Point) Greater(than ...int) bool
- func (p *Point) GreaterThan(o *Point) bool
- func (p *Point) IsX(x int) bool
- func (p *Point) IsY(y int) bool
- func (p *Point) IsZero() bool
- func (p *Point) Less(than ...int) bool
- func (p *Point) LessThan(o *Point) bool
- func (p *Point) Move(by ...int) *Point
- func (p *Point) MoveBy(o *Point) *Point
- func (p *Point) Negate() *Point
- func (p *Point) Set(to ...int) *Point
- func (p *Point) SetTo(o *Point) *Point
- func (p *Point) String() string
- func (p *Point) Within(topLeft, botRight *Point) bool
- func (p *Point) Zero() *Point
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Point ¶
A Point 2D
func (*Point) DistanceTo ¶
The distance from the Point to another Point
func (*Point) Equal ¶
Compares if the Point is equal to the 1-2 integers (more integers are ignored)
func (*Point) GreaterThan ¶
Compares the Point to another Point
Click to show internal directories.
Click to hide internal directories.