Merge pull request #24 from mdiluz/fix-southwest
Fix SW direction to go south rather than north
This commit is contained in:
commit
0e731df1a3
1 changed files with 8 additions and 8 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue