Skip to content
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

Make from_matrix_uncheckedes const #950

Merged
merged 1 commit into from Jul 27, 2021
Merged

Conversation

CAD97
Copy link
Contributor

@CAD97 CAD97 commented Jul 22, 2021

Now that T is unbounded, the unchecked constructors can be const.

Comment on lines -158 to -161
assert!(
matrix.is_square(),
"Unable to create a rotation from a non-square matrix."
);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that squareness is still statically enforced, since we take SMatrix<_, D, D>, which doesn't allow for dynamic sizing.

@sebcrozet sebcrozet merged commit 15c4a25 into dimforge:dev Jul 27, 2021
@sebcrozet
Copy link
Member

Thanks!

@CAD97 CAD97 deleted the moar-const branch January 13, 2024 05: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.

None yet

2 participants