diff options
-rw-r--r-- | vector2D.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vector2D.go b/vector2D.go index 551391d..6f49582 100644 --- a/vector2D.go +++ b/vector2D.go @@ -5,8 +5,8 @@ import ( ) type Vec2 struct { - X float64 `json:X` - Y float64 `json:Y` + X float64 `json:"X"` + Y float64 `json:"Y"` } // newVec2 returns a new Vec2 using the given coordinates |