Advertisement
Ember

Movable

Dec 23rd, 2014
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.86 KB | None | 0 0
  1. Align(16) union
  2. {
  3.     // The container holding the transform
  4.     struct { Float4x4 Transform; };
  5.     // The individual transform vectors
  6.     struct
  7.     {
  8.         // The forward direction vector
  9.         struct { Float3 Forward; Float Unused; };
  10.         // The right direction vector
  11.         struct { Float3 Right; Float Unused; };
  12.         // The up direction vector
  13.         struct { Float3 Up; Float Unused; };
  14.         // The translation vector
  15.         struct
  16.         {
  17.             // A union that allows access to the translations components via bypassing the actual vector
  18.             union
  19.             {
  20.                 // The actual translation vector
  21.                 struct { Float3 Position; Float Unused; };
  22.                 // The individual translation components
  23.                 struct { Float X, Y, Z, Unused; };
  24.             };
  25.         };
  26.     };
  27. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement