Vector3I.generated.cs 695 B

123456789101112131415161718192021222324252627282930313233343536373839
  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 three dimensional vector with integer coordinates.</summary>
  10. [StructLayout(LayoutKind.Sequential), SerializeObject]
  11. public partial struct Vector3I
  12. {
  13. /// <summary>Initializes the struct with default values.</summary>
  14. public static Vector3I Default()
  15. {
  16. Vector3I value = new Vector3I();
  17. value.x = 0;
  18. value.y = 0;
  19. value.z = 0;
  20. return value;
  21. }
  22. public Vector3I(int x, int y, int z)
  23. {
  24. this.x = x;
  25. this.y = y;
  26. this.z = z;
  27. }
  28. public int x;
  29. public int y;
  30. public int z;
  31. }
  32. /** @} */
  33. }