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