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 typesafe 3D directions and rotations #177

Open
tomrijnbeek opened this issue Oct 11, 2019 · 2 comments
Open

Add typesafe 3D directions and rotations #177

tomrijnbeek opened this issue Oct 11, 2019 · 2 comments
Labels

Comments

@tomrijnbeek
Copy link
Member

No description provided.

tomrijnbeek pushed a commit that referenced this issue Oct 11, 2019
tomrijnbeek added a commit that referenced this issue Oct 17, 2019
* ✨ Add 3d spacetime types

* ✨ Add missing projection and raising

* 🔥 Remove directions for now

Filed #177 for those
@Jlll1
Copy link
Contributor

Jlll1 commented Jan 31, 2021

Is there anything left to be done with that?

@paulcscharf
Copy link
Member

We currently only have 3D linear types, none for directions/rotations. We actually had a discussion about that while ago, and the tricky thing is that the same kind of binary representation we use for the Direction2 type likely won't work here, since 3D orientation is a lot more complex. Quaternions may be the way to go instead, but I'm not sure how that would end up in the end.

Ideally we'd like Direction3 (an absolute direction) and Rotation3 (a relative rotation around some axis, can be more than 360 degrees as well), as well as Rotation3Velocity and Rotation3Acceleration types that hide whatever complex implementation details we choose inside and have all the same easy to use operators as the 2D types.

If that's something you want to try and tackle, please be our guest! But it's definitely on the trickier side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants