Skip to content

Fix: Handled 3X3 Matrix transpose with the custom input matrix - #9198

Open
Pranava-Pai-N wants to merge 5 commits into
processing:mainfrom
Pranava-Pai-N:bugfix/invalid-matrix-transpose-with-custom-input
Open

Pranava-Pai-N wants to merge 5 commits into
processing:mainfrom
Pranava-Pai-N:bugfix/invalid-matrix-transpose-with-custom-input

Conversation

@Pranava-Pai-N

Copy link
Copy Markdown
Contributor

Resolves #9197

Changes:

  • Fixed p5.Matrix.transpose() for 3x3 matrices when a p5.Matrix object is provided as input.
  • Converted the provided matrix to its underlying mat3 values before transposing.
  • Enabled regression tests for 3x3 matrix and array transpose behavior.
  • Kept the existing array-input behavior unchanged.

PR Checklist

  • npm run lint passes
  • [Inline reference] is included / updated
  • [Unit tests] are included / updated

@p5-bot

p5-bot Bot commented Sep 21, 2026

Copy link
Copy Markdown

Continuous Release

CDN link

Published Packages

Commit hash: 224505e

Previous deployments

7eac0b6


This is an automated message.

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]: 3x3 p5.Matrix.transpose() ignores passed matrix/array input and produces incorrect results

1 participant