point.go
func DirectionTo(p1, p2 Point) Direction {
	bearing := BearingTo(p1, p2)

	index := bearing - 22.5

	if index < 0 {
		index += 360
	}
	indexInt := int(index / 45.0)

	return Direction(indexInt)
}
func DirectionTo(p1, p2 Point) Direction {
	bearing := BearingTo(p1, p2)

	index := bearing - 22.5

	if index < 0 {
		index += 360
	}
	indexInt := int(index / 45.0)

	return Direction(indexInt)
}
func DirectionTo ( p1 , p2 Point ) Direction { bearing := BearingTo ( p1 , p2 ) index := bearing - 22.5 if index < 0 { index += 360 } indexInt := int ( index / 45.0 ) return Direction ( indexInt ) }
// DirectionTo returns the direction from p1 to p2
DirectionTo returns the direction from p1 to p2