Skip to content

Commit

Permalink
fix: remove array returns in avec
Browse files Browse the repository at this point in the history
  • Loading branch information
dmnsgn committed May 31, 2023
1 parent 14d8ace commit 25fe7ba
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 1 addition & 4 deletions avec3.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ export function addScaled(a, i, b, j, s) {
* @param {number} i
* @param {import("./types.js").amat4} m
* @param {number} j
* @returns {import("./types.js").avec3}
*/
export function multMat4(a, i, m, j) {
const x = a[i * 3];
Expand All @@ -122,7 +121,6 @@ export function multMat4(a, i, m, j) {
* @param {number} i
* @param {import("./types.js").aquat} q
* @param {number} j
* @returns {import("./types.js").avec3}
*/
export function multQuat(a, i, q, j) {
const x = a[i * 3];
Expand All @@ -142,8 +140,6 @@ export function multQuat(a, i, q, j) {
a[i * 3] = ix * qw + iw * -qx + iy * -qz - iz * -qy;
a[i * 3 + 1] = iy * qw + iw * -qy + iz * -qx - ix * -qz;
a[i * 3 + 2] = iz * qw + iw * -qz + ix * -qy - iy * -qx;

return a;
}

/**
Expand All @@ -152,6 +148,7 @@ export function multQuat(a, i, q, j) {
* @param {number} i
* @param {import("./types.js").avec3} b
* @param {number} j
* @returns {number}
*/
export function dot(a, i, b, j) {
return (
Expand Down
2 changes: 0 additions & 2 deletions avec4.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ export function addScaled(a, i, b, j, s) {
* @param {number} i
* @param {import("./types.js").amat4} m
* @param {number} j
* @returns {import("./types.js").avec4}
*/
export function multMat4(a, i, m, j) {
const x = a[i * 4];
Expand All @@ -136,7 +135,6 @@ export function multMat4(a, i, m, j) {
m[j * 16 + 7] * y +
m[j * 16 + 11] * z +
m[j * 16 + 15] * w;
return a;
}

/**
Expand Down

0 comments on commit 25fe7ba

Please sign in to comment.