From cb4544df53e237b0d7a991c205adf9a904b50439 Mon Sep 17 00:00:00 2001 From: Roy Macdonald Date: Wed, 22 Jul 2026 20:31:35 -0400 Subject: [PATCH 1/2] Fixed typo in quaternion multiplication --- src/webgl/p5.Quat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webgl/p5.Quat.js b/src/webgl/p5.Quat.js index d10f509b94..02eb53d0f7 100644 --- a/src/webgl/p5.Quat.js +++ b/src/webgl/p5.Quat.js @@ -41,7 +41,7 @@ class Quat { multiply(quat) { return new Quat( - this.w * quat.w - this.vec.x * quat.vec.x - this.vec.y * quat.vec.y - this.vec.z - quat.vec.z, + this.w * quat.w - this.vec.x * quat.vec.x - this.vec.y * quat.vec.y - this.vec.z * quat.vec.z, this.w * quat.vec.x + this.vec.x * quat.w + this.vec.y * quat.vec.z - this.vec.z * quat.vec.y, this.w * quat.vec.y - this.vec.x * quat.vec.z + this.vec.y * quat.w + this.vec.z * quat.vec.x, this.w * quat.vec.z + this.vec.x * quat.vec.y - this.vec.y * quat.vec.x + this.vec.z * quat.w From 34809c331cbfc3155b7a52097db40cd100626dbd Mon Sep 17 00:00:00 2001 From: Roy Macdonald Date: Thu, 23 Jul 2026 17:31:54 -0400 Subject: [PATCH 2/2] Corrected function name in inline doc --- src/webgl/p5.Quat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webgl/p5.Quat.js b/src/webgl/p5.Quat.js index 02eb53d0f7..d9204aec32 100644 --- a/src/webgl/p5.Quat.js +++ b/src/webgl/p5.Quat.js @@ -34,7 +34,7 @@ class Quat { /** * Multiplies a quaternion with other quaternion. - * @method mult + * @method multiply * @param {p5.Quat} [quat] quaternion to multiply with the quaternion calling the method. * @chainable */