Advertisement
Ember

Movable

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