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 rotate_towards for Vec2 and Quat #495

Merged
merged 2 commits into from
May 23, 2024

Conversation

chompaa
Copy link
Contributor

@chompaa chompaa commented Mar 14, 2024

Adds a rotate_towards function for Vec2 and Quat, based on discussion in #265, with tests.

I'm unsure if these tests are comprehensive enough.

@bitshifter
Copy link
Owner

It might take a while before I have time to have a proper look at this.

Copy link
Owner

@bitshifter bitshifter left a comment

Choose a reason for hiding this comment

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

Just some minor docs changes.

codegen/templates/quat.rs.tera Show resolved Hide resolved
@@ -1868,6 +1868,26 @@ impl {{ self_t }} {
}
{% endif %}

{% if is_signed and is_float and dim == 2 %}
/// Rotates towards `rhs` based on the value `d`.
Copy link
Owner

Choose a reason for hiding this comment

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

Should also mention that d is an angle in radians.

@bitshifter bitshifter merged commit 42f66a2 into bitshifter:main May 23, 2024
18 checks passed
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.

None yet

2 participants