| 123456789101112131415161718192021222324252627282930313233343536373839 |
- using System;
- using System.Runtime.CompilerServices;
- using System.Runtime.InteropServices;
- namespace BansheeEngine
- {
- /** @addtogroup Math
- * @{
- */
- /// <summary>A three dimensional vector with integer coordinates.</summary>
- [StructLayout(LayoutKind.Sequential), SerializeObject]
- public partial struct Vector3I
- {
- /// <summary>Initializes the struct with default values.</summary>
- public static Vector3I Default()
- {
- Vector3I value = new Vector3I();
- value.x = 0;
- value.y = 0;
- value.z = 0;
- return value;
- }
- public Vector3I(int x, int y, int z)
- {
- this.x = x;
- this.y = y;
- this.z = z;
- }
- public int x;
- public int y;
- public int z;
- }
- /** @} */
- }
|