Vector4I.generated.cs 748 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. using System.Runtime.InteropServices;
  4. namespace BansheeEngine
  5. {
  6. /** @addtogroup Math
  7. * @{
  8. */
  9. /// <summary>A four dimensional vector with integer coordinates.</summary>
  10. [StructLayout(LayoutKind.Sequential), SerializeObject]
  11. public partial struct Vector4I
  12. {
  13. /// <summary>Initializes the struct with default values.</summary>
  14. public static Vector4I Default()
  15. {
  16. Vector4I value = new Vector4I();
  17. value.x = 0;
  18. value.y = 0;
  19. value.z = 0;
  20. value.w = 0;
  21. return value;
  22. }
  23. public Vector4I(int x, int y, int z, int w)
  24. {
  25. this.x = x;
  26. this.y = y;
  27. this.z = z;
  28. this.w = w;
  29. }
  30. public int x;
  31. public int y;
  32. public int z;
  33. public int w;
  34. }
  35. /** @} */
  36. }