about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--vector2D.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/vector2D.go b/vector2D.go
index 8c9f126..20b6ee9 100644
--- a/vector2D.go
+++ b/vector2D.go
@@ -18,12 +18,12 @@ func (v *Vec2) Copy() Vec2 {
 	return Vec2{v.X, v.Y}
 }
 
-// returns the product of the vector and a scalar s
+// Multiply returns the product of the vector and a scalar s
 func (v *Vec2) Multiply(s float64) Vec2 {
 	return Vec2{v.X * s, v.Y * s}
 }
 
-// returns the sum of this vector and the vector v2
+// Add returns the sum of this vector and the vector v2
 func (v1 *Vec2) Add(v2 Vec2) Vec2 {
 	return Vec2{v1.X + v2.X, v1.Y + v2.Y}
 }