-
-
Notifications
You must be signed in to change notification settings - Fork 4k
rename Transform::compute_matrix to to_matrix #19646
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
It looks like your PR is a breaking change, but you didn't provide a migration guide. Please review the instructions for writing migration guides, then expand or revise the content in the migration guides directory to reflect your changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs a migration guide :)
/// rotation, and scale. | ||
#[inline] | ||
pub fn compute_matrix(&self) -> Mat4 { | ||
pub fn to_matrix(&self) -> Mat4 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we even need this method if we implementedoh I see, people on Discord seem to agree thatFrom<Transform> for Mat4
?From
should not be implemented here- Also, do we want to keep a deprecated alias for a nicer migration?
- Anyways, better than the current state of things :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eh, this is pretty easy to figure out and niche. The deprecated alias is solidly nice-to-have.
Ping about the migration guide :) |
Objective
Solution
Testing