Skip to content

Commit

Permalink
use mat32.V3 instead of mat32.Vec3
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoreilly committed Dec 20, 2023
1 parent d87e7eb commit d305b72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/en/docs/mat32/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
```

Expand Down

0 comments on commit d305b72

Please sign in to comment.