about summary refs log tree commit diff
path: root/vector2D.go
diff options
context:
space:
mode:
Diffstat (limited to 'vector2D.go')
-rw-r--r--vector2D.go3
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