code: 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)
  }
docs: // DirectionTo returns the direction from p1 to p2