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

Add unit_cast, to_linear, and to_angular functions #3

Merged
merged 4 commits into from
May 31, 2024

Conversation

sufferiing
Copy link
Member

Adds:

  • unit_cast for un(type)safely converting between units, which is necessary for certain algorithms
  • toLinear for safely and correctly converting an angular unit value into a linear unit value eg. AngularVelocity -> LinearVelocity
  • toAngular for safely and correctly converting an linear unit value into a angular unit value eg. LinearVelocity -> AngularVelocity

@Aang099 Aang099 self-requested a review May 31, 2024 00:52
@Aang099 Aang099 merged commit a34ae66 into LemLib:main May 31, 2024
1 check passed
@sufferiing sufferiing deleted the unit-coercion branch May 31, 2024 01:37
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.

2 participants