-
-
Notifications
You must be signed in to change notification settings - Fork 191
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
feat: Make RotateTo+RotationType functionality more available #3291
feat: Make RotateTo+RotationType functionality more available #3291
Conversation
This way we remove the circular dependency between Actions and Math packages.
Work in progress. Also the seed of unit test.
For Excalibur users, the change is backwards compatible, because RemoveRotation is a global symbol within Excalibur pacakge. All internal uses are modified to use RemoveRotation from Math package.
@eonarheim this is ready, waiting for your review and blessing :) Locally all tests pass, don't know how to trigger the check here on github. |
@isokissa Apologies I've been busy with other things, I'll give this a proper look today |
Still stying problems in vector.ts, but it won't tell me what is wrong. And yeah, I ended up not using |
Fixed formatting, now it should be 100% ready for review. @eonarheim |
@isokissa Thanks a ton! This is a great addition, much appreciated! |
===:clipboard: PR Checklist :clipboard:===
==================
Closes #3288
Changes:
angleBetween
metdhod toVector
class.canonicalizeAngle
to never return 2PIRotationType
moved toMath
Vector.rotate()
to illustrate the conventions