diff options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/main.go b/main.go index 95aef98..b71f38d 100644 --- a/main.go +++ b/main.go @@ -11,8 +11,12 @@ func main() { starsSlice := []structs.Star{ {structs.Coord{X: 100, Y: 100}, structs.Force{0, 0}, 1000}, {structs.Coord{X: 200, Y: 300}, structs.Force{0, 0}, 1000}, + {structs.Coord{X: 100, Y: 500}, structs.Force{0, 0}, 1000}, } + // Print the starsSlice fmt.Println(starsSlice) - fmt.Println(forces.ForceActing(starsSlice[0], starsSlice[1])) + + // Calculate the forces acting inbetween all the stars in the starsSlice slice and star nr 0 in the starsSlice slice + fmt.Println(forces.Forces(starsSlice, 0)) } |