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 From/Into array and tuple for Vector2d, Vector3d and Quaternion #111

Merged
merged 3 commits into from
Jul 16, 2024

Conversation

sunsided
Copy link
Contributor

@sunsided sunsided commented Jul 9, 2024

This adds From<Vector2d<C>> for [C; 2] and From<Vector3d<C>> for [C; 3] (and their Into, as well as tuple counterparts). The functions to_array() already existed, so this simply expresses it as a trait implementation.

Same for Quaternion to keep the symmetry in behavior, the to_array function also existed here already.

@sunsided sunsided changed the title Add From/Into array and tuple for Vector2d and Vector3d Add From/Into array and tuple for Vector2d, Vector3d and Quaternion Jul 9, 2024
@tarcieri tarcieri merged commit e41846f into tarcieri:main Jul 16, 2024
11 checks passed
@sunsided sunsided deleted the feature/vec-from-array branch July 17, 2024 09:33
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