From 088372b31882dd0217d8cc36d7abeac8b6268382 Mon Sep 17 00:00:00 2001 From: emile Date: Mon, 15 Oct 2018 15:32:13 +0200 Subject: refactored the Star type to Star2D --- structs/structs.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'structs') 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 -- cgit 1.4.1