Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Quaternions are 32 bytes due to alignment constraints instead of 16 bytes #34

Open
nfrechette opened this issue Nov 3, 2018 · 0 comments

Comments

@nfrechette
Copy link

Because a Quaternion is made up of a Vector3 (16 bytes) and a float (4 bytes), alignment to will bump the size to 32 bytes. This is wasteful as a quaternion can easily and efficiently be implemented using a Vector4 (16 bytes).

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

No branches or pull requests

1 participant