Skip to content

Conversation

cortinico
Copy link
Contributor

Summary:
Fixes #53639

I've realized that our docs and validation logic states that we do support
3x3 matrixes (for 2d transforms). However they're not properly processed
as the values are just copied into a 4x4 matrix.

This can be verified by applying the 3x3 identity matrix on any transform.

I'm fixing it by correctly populating the 4x4 matrix getting the values from the 3x3 matrix in input.

Changelog:
[General] [Fixed] - 9-element (2d) transform matrix are not correctly working

Differential Revision: D82836192

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 19, 2025
@facebook-github-bot
Copy link
Contributor

@cortinico has exported this pull request. If you are a Meta employee, you can view the originating diff in D82836192.

@cortinico cortinico changed the title Correctly implement transform: matrix with 2d matrixes Correctly implement transform: matrix with 2d matrices Sep 19, 2025
Summary:

Fixes facebook#53639

I've realized that our docs and validation logic states that we do support
3x3 matrixes (for 2d transforms). However they're not properly processed
as the values are just copied into a 4x4 matrix.

This can be verified by applying the 3x3 identity matrix on any transform.

I'm fixing it by correctly populating the 4x4 matrix getting the values from the 3x3 matrix in input.

Changelog:
[General] [Fixed] - 9-element (2d) transform matrix are not correctly working

Reviewed By: christophpurrer

Differential Revision: D82836192
@facebook-github-bot
Copy link
Contributor

@cortinico has exported this pull request. If you are a Meta employee, you can view the originating diff in D82836192.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Sep 22, 2025
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in ce243df.

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @cortinico in ce243df

When will my fix make it into a release? | How to file a pick request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9-element (2d) transform matrix is not applied properly
3 participants