diff --git a/Source/OpenTK/Math/Vector2.cs b/Source/OpenTK/Math/Vector2.cs index e60647ac..edf2f09c 100644 --- a/Source/OpenTK/Math/Vector2.cs +++ b/Source/OpenTK/Math/Vector2.cs @@ -338,6 +338,11 @@ namespace OpenTK.Math /// public static readonly Vector2 Zero = new Vector2(0, 0); + /// + /// Defines an instance with all components set to 1. + /// + public static readonly Vector2 One = new Vector2(1, 1); + /// /// Defines the size of the Vector2 struct in bytes. /// diff --git a/Source/OpenTK/Math/Vector2d.cs b/Source/OpenTK/Math/Vector2d.cs index 84512447..cdfca9b2 100644 --- a/Source/OpenTK/Math/Vector2d.cs +++ b/Source/OpenTK/Math/Vector2d.cs @@ -55,6 +55,11 @@ namespace OpenTK.Math /// public static Vector2d Zero = new Vector2d(0, 0); + /// + /// Defines an instance with all components set to 1. + /// + public static readonly Vector2d One = new Vector2d(1, 1); + /// /// Defines the size of the Vector2d struct in bytes. /// diff --git a/Source/OpenTK/Math/Vector3.cs b/Source/OpenTK/Math/Vector3.cs index 5f888e5e..dd01e087 100644 --- a/Source/OpenTK/Math/Vector3.cs +++ b/Source/OpenTK/Math/Vector3.cs @@ -335,6 +335,11 @@ namespace OpenTK.Math /// public static readonly Vector3 Zero = new Vector3(0, 0, 0); + /// + /// Defines an instance with all components set to 1. + /// + public static readonly Vector3 One = new Vector3(1, 1, 1); + /// /// Defines the size of the Vector3 struct in bytes. /// diff --git a/Source/OpenTK/Math/Vector3d.cs b/Source/OpenTK/Math/Vector3d.cs index 3d8c48ed..c962fb34 100644 --- a/Source/OpenTK/Math/Vector3d.cs +++ b/Source/OpenTK/Math/Vector3d.cs @@ -333,6 +333,11 @@ namespace OpenTK.Math /// public static readonly Vector3d Zero = new Vector3d(0, 0, 0); + /// + /// Defines an instance with all components set to 1. + /// + public static readonly Vector3d One = new Vector3d(1, 1, 1); + /// /// Defines the size of the Vector3d struct in bytes. /// diff --git a/Source/OpenTK/Math/Vector4.cs b/Source/OpenTK/Math/Vector4.cs index 3da9844d..c8f73b68 100644 --- a/Source/OpenTK/Math/Vector4.cs +++ b/Source/OpenTK/Math/Vector4.cs @@ -83,6 +83,11 @@ namespace OpenTK.Math /// public static Vector4 Zero = new Vector4(0, 0, 0, 0); + /// + /// Defines an instance with all components set to 1. + /// + public static readonly Vector4 One = new Vector4(1, 1, 1, 1); + /// /// Defines the size of the Vector4 struct in bytes. /// diff --git a/Source/OpenTK/Math/Vector4d.cs b/Source/OpenTK/Math/Vector4d.cs index e144069a..9bf47e45 100644 --- a/Source/OpenTK/Math/Vector4d.cs +++ b/Source/OpenTK/Math/Vector4d.cs @@ -80,6 +80,11 @@ namespace OpenTK.Math /// public static Vector4d Zero = new Vector4d(0, 0, 0, 0); + /// + /// Defines an instance with all components set to 1. + /// + public static readonly Vector4d One = new Vector4d(1, 1, 1, 1); + /// /// Defines the size of the Vector4d struct in bytes. ///