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

Field ordering for GA(3,0) #36

Open
chrisjldoran opened this issue Mar 20, 2024 · 0 comments
Open

Field ordering for GA(3,0) #36

chrisjldoran opened this issue Mar 20, 2024 · 0 comments

Comments

@chrisjldoran
Copy link
Collaborator

We currently store a quaternion in a struct ordered (w, x ,y z).

Occasionally it is helpful to grab a component along axis labeled (1, 2, 3) which have been derived programmatically. This can be done efficiently with a getfield(vec, i) command, but the indices are all off by 1 because the first field is w. We could solve this by swapping the order to (x, y, z, w). This also feels a bit more natural (it is how we order things in projective geometry).

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

No branches or pull requests

1 participant