diff options
Diffstat (limited to 'vector2D.go')
-rw-r--r-- | vector2D.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vector2D.go b/vector2D.go index f358ecd..e038f6e 100644 --- a/vector2D.go +++ b/vector2D.go @@ -40,6 +40,6 @@ func (v *Vec2) Multiply(s float64) Vec2 { } // 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} +func (v *Vec2) Add(v2 Vec2) Vec2 { + return Vec2{v.X + v2.X, v.Y + v2.Y} } |