From d305b72341cd1a1384e2864efb901dfd9f544aee Mon Sep 17 00:00:00 2001 From: Kai O'Reilly Date: Tue, 19 Dec 2023 22:05:37 -0800 Subject: [PATCH] use mat32.V3 instead of mat32.Vec3 --- content/en/docs/mat32/_index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/docs/mat32/_index.md b/content/en/docs/mat32/_index.md index 1902b8e..a03944e 100644 --- a/content/en/docs/mat32/_index.md +++ b/content/en/docs/mat32/_index.md @@ -19,7 +19,7 @@ So, in this `mat32` package, `Add` looks like this: ```Go // Add adds other vector to this one and returns result in a new vector. func (v Vec3) Add(other Vec3) Vec3 { - return Vec3{v.X + other.X, v.Y + other.Y, v.Z + other.Z} + return V3(v.X + other.X, v.Y + other.Y, v.Z + other.Z) } ```