Merge pull request #24 from mdiluz/fix-southwest

Fix SW direction to go south rather than north
This commit is contained in:
Marc Di Luzio 2020-07-11 17:31:40 +01:00 committed by GitHub
commit 0e731df1a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,14 +66,14 @@ func FromString(s string) (Bearing, error) {
} }
var bearingVectors = []Vector{ var bearingVectors = []Vector{
{X: 0, Y: 1}, // N {X: 0, Y: 1}, // N
{X: 1, Y: 1}, // NE {X: 1, Y: 1}, // NE
{X: 1, Y: 0}, // E {X: 1, Y: 0}, // E
{X: 1, Y: -1}, // SE {X: 1, Y: -1}, // SE
{X: 0, Y: -1}, // S {X: 0, Y: -1}, // S
{X: -1, Y: 1}, // SW {X: -1, Y: -1}, // SW
{X: -1, Y: 0}, // W {X: -1, Y: 0}, // W
{X: -1, Y: 1}, // NW {X: -1, Y: 1}, // NW
} }
// Vector converts a Direction to a Vector // Vector converts a Direction to a Vector