Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Align(16) union
- {
- // The container holding the transform
- struct { Float4x4 Transform; };
- // The individual transform vectors
- struct
- {
- // The forward direction vector
- struct { Float3 Forward; Float Roll; };
- // The right direction vector
- struct { Float3 Right; Float Pitch; };
- // The up direction vector
- struct { Float3 Up; Float Yaw; };
- // The translation vector
- struct
- {
- // A union that allows access to the translations components via bypassing the actual vector
- union
- {
- // The actual translation vector
- struct { Float3 Position; Float Unused; };
- // The individual translation components
- struct { Float X, Y, Z, Unused; };
- };
- };
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement