Split out maths functions into maths, vector and bearing
This commit is contained in:
parent
aae668fb57
commit
51fe918090
14 changed files with 335 additions and 273 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue