Skip to content

Conversation

@lynn-lumen
Copy link
Contributor

Objective

  • I have found myself writing Dir2::new_unchecked(Vec2::from_angle(angle)) or Dir2::new(Vec2::from_angle(angle)).unwrap() quite frequently. This is pretty cumbersome and should not require calling .unwrap() or unchecked functions.

Solution

  • Added Dir2::from_angle(angle)

@lynn-lumen lynn-lumen changed the title impl Dir2 from_angle Add Dir2::from_angle Dec 19, 2025
@andriyDev andriyDev added C-Feature A new feature, making something new possible A-Math Fundamental domain-agnostic mathematical operations D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Dec 21, 2025
@andriyDev andriyDev added S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Dec 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Math Fundamental domain-agnostic mathematical operations C-Feature A new feature, making something new possible D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants