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.
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
Reworked Segment types into their cartesian forms #17404
base: main
Are you sure you want to change the base?
Reworked Segment types into their cartesian forms #17404
Changes from 43 commits
82d5518
a33987b
be0416c
b3d4deb
e3d8464
b9e3cdf
4619993
e54a5fc
cde65c0
bd971f6
334de9b
42b9ef1
c460228
08dd3d7
02783a4
c0418c6
c7f1e2a
f976e99
bd1f029
b9ce954
3da4e46
a5e6cad
7ec709f
2ce9647
070f9e8
c00a6ee
e2537f4
f1686ca
8b25949
2988fd0
c9431c9
ff8bd4c
7a77935
7804e7e
681f4d3
fdabe19
1fd5de3
dbe951f
fd63766
1721259
35c0f3c
00cfaa0
2fc35ba
6f6e781
eccfd2b
af65238
58d6243
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
There's no need for this function.
Rot2
is intended to abstract 2D rotations much likeQuat
in 3D, so you can just dorotation * p
.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.
I tried but I got
cannot multiply glam::Vec2 by Rot2
, maybe i'm doing something wrongThere 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.
you should probably multiply Rot2 by glam::Vec2