Skip to content

fix mult() inconsistency: make 3x3 and NxN use left-multiplication like 4x4#8947

Draft
vamshi567bh wants to merge 1 commit into
processing:mainfrom
vamshi567bh:clean-matrix-fix
Draft

fix mult() inconsistency: make 3x3 and NxN use left-multiplication like 4x4#8947
vamshi567bh wants to merge 1 commit into
processing:mainfrom
vamshi567bh:clean-matrix-fix

Conversation

@vamshi567bh

Copy link
Copy Markdown

resolves #8940

Changes
Makes #mult3x3 and #multNxN consistent with #mult4x4 by using left-multiplication (this = arg * this) instead of right-multiplication (this = this * arg).

PR Checklist

  • npm run lint passes successfully.
  • Inline reference documentation updated.
  • Unit tests included and passing.

@vamshi567bh

Copy link
Copy Markdown
Author

@davepagurek please review thanks!

@vamshi567bh

Copy link
Copy Markdown
Author

processing/p5.js-website#1460 related

@davepagurek

davepagurek commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

Does this actually address #8940 ? i.e. does it go through the mult3x3 or multNxN code paths there?

It sounds like if these methods have inconsistent sidedness with 4x4 matrices, that it'd maybe be a separate issue. Before continuing down this path it would be good to raise an issue for it with a sketch showing the difference between e.g. a translate applied onto a scale via 2d and 3d affine matrices to see if it's different.

@vamshi567bh vamshi567bh marked this pull request as draft June 21, 2026 04:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[p5.js 2.0+ Bug Report]: Framebuffer example breaks on 2+

2 participants