From 0355d2a1ddc3610cc06e7d680926cdd0aa3b2c4e Mon Sep 17 00:00:00 2001 From: Timon Ringwald Date: Fri, 26 Aug 2022 08:53:01 +0200 Subject: [PATCH] vec add fixed --- vec2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vec2.go b/vec2.go index 8b59d01..1d5ddf4 100644 --- a/vec2.go +++ b/vec2.go @@ -31,7 +31,7 @@ func (v Vec2[N]) W() N { } func (v Vec2[N]) Add(o Vec[N, Vec2[N]]) Vec[N, Vec2[N]] { - return Vec2[N]{v.X() + o.X(), v.Y() - o.Y()} + return Vec2[N]{v.X() + o.X(), v.Y() + o.Y()} } func (v Vec2[N]) Sub(o Vec[N, Vec2[N]]) Vec[N, Vec2[N]] {