Split out maths functions into maths, vector and bearing

This commit is contained in:
Marc Di Luzio 2020-06-09 18:08:07 +01:00
parent aae668fb57
commit 51fe918090
14 changed files with 335 additions and 273 deletions

View file

@ -1,6 +1,9 @@
package game
import "github.com/google/uuid"
import (
"github.com/google/uuid"
"github.com/mdiluz/rove/pkg/vector"
)
// RoverAttributes contains attributes of a rover
type RoverAttributes struct {
@ -14,7 +17,7 @@ type RoverAttributes struct {
Name string `json:"name"`
// Pos represents where this rover is in the world
Pos Vector `json:"pos"`
Pos vector.Vector `json:"pos"`
}
// Rover describes a single rover in the world