about summary refs log tree commit diff
diff options
context:
space:
mode:
authoremile <hanemile@protonmail.com>2018-10-13 22:39:20 +0200
committeremile <hanemile@protonmail.com>2018-10-13 22:39:20 +0200
commit19ef23cc7fcccd16fbc098f547b2b1a9fcbb9877 (patch)
tree52c46c0f3ba0e12a1b9eb9a1bec635a9298aecd3
parentc30daaca6c0107db7a44a5dd039a8366a6eb2787 (diff)
Added the z value to the structs for being able to define a point in a 3D space.
-rw-r--r--structs/structs.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/structs/structs.go b/structs/structs.go
index fe4d607..5b1c6ea 100644
--- a/structs/structs.go
+++ b/structs/structs.go
@@ -7,12 +7,12 @@ package structs
 
 // Force struct soring a force vector
 type Force struct {
-	X, Y float64
+	X, Y, Z float64
 }
 
 // Coord struct storing coordinates
 type Coord struct {
-	X, Y float64
+	X, Y, Z float64
 }
 
 // Star struct storing all necessary star information