Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed May 12, 2024
1 parent ca6bc93 commit 82f4844
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mat4-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 82f4844

Please sign in to comment.