From 82f4844676de3326a1950a00c2b5642b9970461c Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Sun, 12 May 2024 23:25:35 +0900 Subject: [PATCH] fix docs --- src/mat4-impl.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mat4-impl.ts b/src/mat4-impl.ts index 205ac65..b26db8a 100644 --- a/src/mat4-impl.ts +++ b/src/mat4-impl.ts @@ -692,9 +692,9 @@ export function getAxis(m: Mat4, axis: number, dst?: Vec3): Vec3 { * @param dst - The matrix to set. If not passed a new one is created. * @returns The matrix with axis set. */ -export function setAxis(a: Mat4, v: Vec3, axis: number, dst: Mat4): Mat4 { - if (dst !== a) { - dst = copy(a, dst); +export function setAxis(m: Mat4, v: Vec3, axis: number, dst: Mat4): Mat4 { + if (dst !== m) { + dst = copy(m, dst); } const off = axis * 4; dst[off + 0] = v[0];