diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector2I.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector2I.cs
index 231e791904fb..b5ff744c5521 100644
--- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector2I.cs
+++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector2I.cs
@@ -182,6 +182,9 @@ public readonly Vector2I Sign()
}
// Constants
+ private static readonly Vector2I _min = new Vector2I(int.MinValue, int.MinValue);
+ private static readonly Vector2I _max = new Vector2I(int.MaxValue, int.MaxValue);
+
private static readonly Vector2I _zero = new Vector2I(0, 0);
private static readonly Vector2I _one = new Vector2I(1, 1);
@@ -190,6 +193,17 @@ public readonly Vector2I Sign()
private static readonly Vector2I _right = new Vector2I(1, 0);
private static readonly Vector2I _left = new Vector2I(-1, 0);
+ ///
+ /// Min vector, a vector with all components equal to . Can be used as a negative integer equivalent of .
+ ///
+ /// Equivalent to new Vector2I(int.MinValue, int.MinValue).
+ public static Vector2I Min { get { return _min; } }
+ ///
+ /// Max vector, a vector with all components equal to . Can be used as an integer equivalent of .
+ ///
+ /// Equivalent to new Vector2I(int.MaxValue, int.MaxValue).
+ public static Vector2I Max { get { return _max; } }
+
///
/// Zero vector, a vector with all components set to 0.
///
diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector3I.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector3I.cs
index 8543052f561e..62aa02e5123a 100644
--- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector3I.cs
+++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector3I.cs
@@ -193,6 +193,9 @@ public readonly Vector3I Sign()
}
// Constants
+ private static readonly Vector3I _min = new Vector3I(int.MinValue, int.MinValue, int.MinValue);
+ private static readonly Vector3I _max = new Vector3I(int.MaxValue, int.MaxValue, int.MaxValue);
+
private static readonly Vector3I _zero = new Vector3I(0, 0, 0);
private static readonly Vector3I _one = new Vector3I(1, 1, 1);
@@ -203,6 +206,17 @@ public readonly Vector3I Sign()
private static readonly Vector3I _forward = new Vector3I(0, 0, -1);
private static readonly Vector3I _back = new Vector3I(0, 0, 1);
+ ///
+ /// Min vector, a vector with all components equal to . Can be used as a negative integer equivalent of .
+ ///
+ /// Equivalent to new Vector3I(int.MinValue, int.MinValue, int.MinValue).
+ public static Vector3I Min { get { return _min; } }
+ ///
+ /// Max vector, a vector with all components equal to . Can be used as an integer equivalent of .
+ ///
+ /// Equivalent to new Vector3I(int.MaxValue, int.MaxValue, int.MaxValue).
+ public static Vector3I Max { get { return _max; } }
+
///
/// Zero vector, a vector with all components set to 0.
///
diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector4I.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector4I.cs
index f81390317739..56c1df4c64dd 100644
--- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector4I.cs
+++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Vector4I.cs
@@ -228,9 +228,23 @@ public readonly Vector4I Sign()
}
// Constants
+ private static readonly Vector4I _min = new Vector4I(int.MinValue, int.MinValue, int.MinValue, int.MinValue);
+ private static readonly Vector4I _max = new Vector4I(int.MaxValue, int.MaxValue, int.MaxValue, int.MaxValue);
+
private static readonly Vector4I _zero = new Vector4I(0, 0, 0, 0);
private static readonly Vector4I _one = new Vector4I(1, 1, 1, 1);
+ ///
+ /// Min vector, a vector with all components equal to . Can be used as a negative integer equivalent of .
+ ///
+ /// Equivalent to new Vector4I(int.MinValue, int.MinValue, int.MinValue, int.MinValue).
+ public static Vector4I Min { get { return _min; } }
+ ///
+ /// Max vector, a vector with all components equal to . Can be used as an integer equivalent of .
+ ///
+ /// Equivalent to new Vector4I(int.MaxValue, int.MaxValue, int.MaxValue, int.MaxValue).
+ public static Vector4I Max { get { return _max; } }
+
///
/// Zero vector, a vector with all components set to 0.
///