about summary refs log tree commit diff
diff options
context:
space:
mode:
authoremile <hanemile@protonmail.com>2018-10-08 15:44:22 +0200
committeremile <hanemile@protonmail.com>2018-10-08 15:44:22 +0200
commit030b1bd41f502f25e6354760405a6acc2a7ee761 (patch)
treef6a8305630782e61bee9212373c0f5fb9e27e75d
parentdb5af94a4ff878e04b277d2a63a91df2304cb9b9 (diff)
Testing the force.ForceActing(...) function using two manually create stars.
-rw-r--r--main.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.go b/main.go
index c06fc8f..95aef98 100644
--- a/main.go
+++ b/main.go
@@ -1,6 +1,7 @@
 package main
 
 import (
+	"./forces"
 	"./structs"
 	"fmt"
 )
@@ -9,7 +10,9 @@ func main() {
 	// the slice starsSlice stores the star structures
 	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},
 	}
 
 	fmt.Println(starsSlice)
+	fmt.Println(forces.ForceActing(starsSlice[0], starsSlice[1]))
 }