-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Add Rotation2d
#11658
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
Merged
Merged
Add Rotation2d
#11658
Changes from 4 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
f39c6ea
Add `Rotation2d`
Jondolf fef12d6
Use `Rotation2d`
Jondolf f51a8c9
Reflect `Rotation2d`
Jondolf 82892c9
Add `libm`
Jondolf 174a09e
Merge branch 'main' into rotation2d
Jondolf 98f1db4
Add some docs to impls
Jondolf a986cdc
Add tests
Jondolf 2c3d020
Rotate directions
Jondolf 47b0742
Add constants to `Rotation2d`
Jondolf 0c30306
Mention angle range in docs
Jondolf 6eb039a
Fix libm input
Jondolf deddf7b
Add missing doc comment
Jondolf d62e5fa
Fix condition
Jondolf c16b146
Note conditions for valid rotation using `from_sin_cos`
Jondolf 52ea83d
Use parenthesis interval notation
Jondolf fc6f582
Remove `Rotation2d::new`
Jondolf 260ec57
Impl `approx` traits and improve docs
Jondolf f518c96
Rename `from_radians` to `radians` and `from_degrees` to `degrees`
Jondolf d700581
Use `angle_between` to simplify logic
Jondolf dc63b0a
Merge branch 'main' into rotation2d
Jondolf b80c875
Fix doc comment and add `debug_assert!`
Jondolf 702c1f6
Add length and normalization helpers and fix `lerp`
Jondolf e612c8d
Use sin and cos directly for `is_near_identity`
Jondolf 5804977
Improve lerp and slerp docs and tests
Jondolf 586fb49
Merge branch 'main' into rotation2d
Jondolf 4de7b2a
Fix direction type
Jondolf 6de3be0
Improve `lerp` docs
Jondolf 8d5a2eb
Merge branch 'main' into rotation2d
Jondolf f8a393a
Rename `lerp` to `nlerp`
Jondolf c34b9dc
Revert accidental argument type change
Jondolf 57d333b
Use consistent assertions for unit-length after rotating `Dir2`
Jondolf 617a5b4
Fix typo
Jondolf c1904f5
Address review comments regarding normalization
Jondolf 16b078d
Merge branch 'main' into rotation2d
Jondolf 7e61be6
Use `Rotation2d` for 2D bounding volumes
Jondolf 7b53dfe
Fix test
Jondolf 3e0fa74
Explain `is_normalized` threshold value
Jondolf 58cf454
Merge branch 'main' into rotation2d
Jondolf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.