diff options
author | emile <hanemile@protonmail.com> | 2018-10-15 15:32:13 +0200 |
---|---|---|
committer | emile <hanemile@protonmail.com> | 2018-10-15 15:32:13 +0200 |
commit | 088372b31882dd0217d8cc36d7abeac8b6268382 (patch) | |
tree | 72cde48dd5ebdcd1dbe46d1ddec47cda2d2ae592 /structs | |
parent | 04f6bbb6a71b38c2ea40cec68d5de9fe15d430ef (diff) |
refactored the Star type to Star2D
Diffstat (limited to 'structs')
-rw-r--r-- | structs/structs.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/structs/structs.go b/structs/structs.go index 5b1c6ea..ed70a84 100644 --- a/structs/structs.go +++ b/structs/structs.go @@ -7,16 +7,16 @@ package structs // Force struct soring a force vector type Force struct { - X, Y, Z float64 + X, Y float64 } // Coord struct storing coordinates type Coord struct { - X, Y, Z float64 + X, Y float64 } // Star struct storing all necessary star information -type Star struct { +type Star2D struct { C Coord F Force Mass float64 |