Mirror of Svelto.ECS because we're a fan of it
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
369B

  1. namespace Svelto.ECS.Components
  2. {
  3. public struct ECSQuaternion
  4. {
  5. public static readonly ECSQuaternion identity = new ECSQuaternion(0f, 0f, 0f, 1f);
  6. public float x, y, z, w;
  7. public ECSQuaternion(float X, float Y, float Z, float W)
  8. {
  9. x = X;
  10. y = Y;
  11. z = Z;
  12. w = W;
  13. }
  14. }
  15. }