Skip to content

Conversation

@Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented May 8, 2023

Fixed: #23634

Description

The constructors of Matrix3 and Matrix4 now have parameters representing the matrix elements in row-major order. This allows to define matrices similar to the set() method.

The motivation behind this change is to make the matrix constructors more consistent to other math classes, see #23634 (comment).

@Mugen87 Mugen87 added this to the r153 milestone May 8, 2023
@Mugen87 Mugen87 marked this pull request as ready for review May 8, 2023 18:40
@github-actions
Copy link

github-actions bot commented May 8, 2023

📦 Bundle size

Full ESM build, minified and gzipped.

Filesize dev Filesize PR Diff
637.1 kB (157.9 kB) 637.2 kB (158 kB) +142 B

🌳 Bundle size after tree-shaking

Minimal build including a renderer, camera, empty scene, and dependencies.

Filesize dev Filesize PR Diff
427.4 kB (103.7 kB) 427.5 kB (103.7 kB) +142 B

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.

Unify constructor() and set() in Matrix and Color classes

2 participants