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

Adds underlying_type support to UnitVec including direct initialization #577

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

louis-langholtz
Copy link
Owner

Description - What's this PR do?

  • Adds underlying_type support to d2::UnitVec.
  • Adds direct initialization interface to d2::UnitVec for supporting initialization with values that are already unit vector values.

Impacts/Risks of These Changes?

90-degree unit vectors aren't always absolutely 1 but within 2 ULPs of 1.

Related Issues

@louis-langholtz louis-langholtz added Enhancement For suggestions or changes that enhance any part of the project and isn't a bug. Library For issues that effect the library and aren't specific to any particular application. labels Apr 28, 2024
@louis-langholtz louis-langholtz added this to the 2.0 Release milestone Apr 28, 2024
@louis-langholtz louis-langholtz self-assigned this Apr 28, 2024
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

Library/include/playrho/d2/UnitVec.hpp Outdated Show resolved Hide resolved
@louis-langholtz louis-langholtz force-pushed the updates-20240427 branch 2 times, most recently from 7f396e4 to 05883d6 Compare April 28, 2024 20:28
@coveralls
Copy link

coveralls commented Apr 28, 2024

Coverage Status

coverage: 99.287% (+0.001%) from 99.286%
when pulling fd5b993 on updates-20240427
into 331cdc3 on master.

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@louis-langholtz louis-langholtz merged commit 538405f into master Apr 30, 2024
19 checks passed
@louis-langholtz louis-langholtz deleted the updates-20240427 branch April 30, 2024 03:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For suggestions or changes that enhance any part of the project and isn't a bug. Library For issues that effect the library and aren't specific to any particular application.
Development

Successfully merging this pull request may close these issues.

2 participants