Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrimaryDirection ¶
func PrimaryDirection(fromX, fromY, toX, toY int) interfaces.Direction
Returns the primary direction of travel of a vector
Types ¶
type Direction ¶
type Direction struct {
// contains filtered or unexported fields
}
func NewDirection ¶
func (*Direction) Opposite ¶
func (me *Direction) Opposite() interfaces.Direction
Click to show internal directories.
Click to hide internal directories.