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

Generic Quaternion and Vector extensions #2

Conversation

ergoxiv
Copy link

@ergoxiv ergoxiv commented Sep 4, 2024

This pull request is a change proposal to have generic quaternion and vector extensions that we can use in Anamnesis. This library already offered some type extensions but they were very limited in the functionality they provided.

So, I made extensive vector and quaternion extensions based on existing features in Anamnesis' code. The goal of this change proposal is to consolidate everything in one place to reduce code duplication. Furthermore, it makes use of the Vector and Quaternion types offered with System.Numerics, instead of relying on custom implementations, so that we can take advantage of hardware-accelerated calculations (Microsoft Docs).

An accompanying pull request will be made in the other repository.

Note: Also, I renamed the folder from "3D" to "Math3D" and fixed the typo in the namespace. This is just a minor annoyance that I had with it.

@ergoxiv ergoxiv force-pushed the hotfix/vector-and-quaternion-extensions branch from 7601584 to a124532 Compare September 8, 2024 15:56
@StoiaCode StoiaCode merged commit 05adb4f into Aether-Tools:Anamnesis Sep 13, 2024
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