bearing1 = (angle + 360) % 360
bearing2 = (90 - angle) % 360
print('gb: x=%2d y=%2d angle=%6.1f bearing1=%5.1f bearing2=%5.1f' % (x, y,
    angle, bearing1, bearing2))
for pt in ((0, 1), (1, 1), (1, 0), (1, -1), (0, -1), (-1, -1), (-1, 0), (-1, 1)
    ):
    pass
Bearing between two points