Skip to content

Commit

Permalink
JSDoc: missing function argument
Browse files Browse the repository at this point in the history
  • Loading branch information
pawplo authored and toji committed Sep 13, 2024
1 parent 3863965 commit a9b43b4
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/mat4.js
Original file line number Diff line number Diff line change
Expand Up @@ -1039,10 +1039,10 @@ export function fromZRotation(out, rad) {
* This is equivalent to (but much faster than):
*
* mat4.identity(dest);
* mat4.translate(dest, vec);
* mat4.translate(dest, dest, vec);
* let quatMat = mat4.create();
* mat4.fromQuat(quatMat, quat);
* mat4.multiply(dest, quatMat);
* mat4.multiply(dest, dest, quatMat);
*
* @param {mat4} out mat4 receiving operation result
* @param {quat4} q Rotation quaternion
Expand Down Expand Up @@ -1305,11 +1305,11 @@ export function decompose(out_r, out_t, out_s, mat) {
* This is equivalent to (but much faster than):
*
* mat4.identity(dest);
* mat4.translate(dest, vec);
* mat4.translate(dest, dest, vec);
* let quatMat = mat4.create();
* mat4.fromQuat(quatMat, quat);
* mat4.multiply(dest, quatMat);
* mat4.scale(dest, scale)
* mat4.multiply(dest, dest, quatMat);
* mat4.scale(dest, dest, scale)
*
* @param {mat4} out mat4 receiving operation result
* @param {quat4} q Rotation quaternion
Expand Down Expand Up @@ -1365,13 +1365,13 @@ export function fromRotationTranslationScale(out, q, v, s) {
* This is equivalent to (but much faster than):
*
* mat4.identity(dest);
* mat4.translate(dest, vec);
* mat4.translate(dest, origin);
* mat4.translate(dest, dest, vec);
* mat4.translate(dest, dest, origin);
* let quatMat = mat4.create();
* mat4.fromQuat(quatMat, quat);
* mat4.multiply(dest, quatMat);
* mat4.scale(dest, scale)
* mat4.translate(dest, negativeOrigin);
* mat4.multiply(dest, dest, quatMat);
* mat4.scale(dest, dest, scale)
* mat4.translate(dest, dest, negativeOrigin);
*
* @param {mat4} out mat4 receiving operation result
* @param {quat4} q Rotation quaternion
Expand Down

0 comments on commit a9b43b4

Please sign in to comment.