Added static readonly Vector[234]d?.One properties.

This commit is contained in:
the_fiddler 2009-06-04 16:51:45 +00:00
parent d5efed9045
commit bf89289ad9
6 changed files with 30 additions and 0 deletions

View file

@ -338,6 +338,11 @@ namespace OpenTK.Math
/// </summary> /// </summary>
public static readonly Vector2 Zero = new Vector2(0, 0); public static readonly Vector2 Zero = new Vector2(0, 0);
/// <summary>
/// Defines an instance with all components set to 1.
/// </summary>
public static readonly Vector2 One = new Vector2(1, 1);
/// <summary> /// <summary>
/// Defines the size of the Vector2 struct in bytes. /// Defines the size of the Vector2 struct in bytes.
/// </summary> /// </summary>

View file

@ -55,6 +55,11 @@ namespace OpenTK.Math
/// </summary> /// </summary>
public static Vector2d Zero = new Vector2d(0, 0); public static Vector2d Zero = new Vector2d(0, 0);
/// <summary>
/// Defines an instance with all components set to 1.
/// </summary>
public static readonly Vector2d One = new Vector2d(1, 1);
/// <summary> /// <summary>
/// Defines the size of the Vector2d struct in bytes. /// Defines the size of the Vector2d struct in bytes.
/// </summary> /// </summary>

View file

@ -335,6 +335,11 @@ namespace OpenTK.Math
/// </summary> /// </summary>
public static readonly Vector3 Zero = new Vector3(0, 0, 0); public static readonly Vector3 Zero = new Vector3(0, 0, 0);
/// <summary>
/// Defines an instance with all components set to 1.
/// </summary>
public static readonly Vector3 One = new Vector3(1, 1, 1);
/// <summary> /// <summary>
/// Defines the size of the Vector3 struct in bytes. /// Defines the size of the Vector3 struct in bytes.
/// </summary> /// </summary>

View file

@ -333,6 +333,11 @@ namespace OpenTK.Math
/// </summary> /// </summary>
public static readonly Vector3d Zero = new Vector3d(0, 0, 0); public static readonly Vector3d Zero = new Vector3d(0, 0, 0);
/// <summary>
/// Defines an instance with all components set to 1.
/// </summary>
public static readonly Vector3d One = new Vector3d(1, 1, 1);
/// <summary> /// <summary>
/// Defines the size of the Vector3d struct in bytes. /// Defines the size of the Vector3d struct in bytes.
/// </summary> /// </summary>

View file

@ -83,6 +83,11 @@ namespace OpenTK.Math
/// </summary> /// </summary>
public static Vector4 Zero = new Vector4(0, 0, 0, 0); public static Vector4 Zero = new Vector4(0, 0, 0, 0);
/// <summary>
/// Defines an instance with all components set to 1.
/// </summary>
public static readonly Vector4 One = new Vector4(1, 1, 1, 1);
/// <summary> /// <summary>
/// Defines the size of the Vector4 struct in bytes. /// Defines the size of the Vector4 struct in bytes.
/// </summary> /// </summary>

View file

@ -80,6 +80,11 @@ namespace OpenTK.Math
/// </summary> /// </summary>
public static Vector4d Zero = new Vector4d(0, 0, 0, 0); public static Vector4d Zero = new Vector4d(0, 0, 0, 0);
/// <summary>
/// Defines an instance with all components set to 1.
/// </summary>
public static readonly Vector4d One = new Vector4d(1, 1, 1, 1);
/// <summary> /// <summary>
/// Defines the size of the Vector4d struct in bytes. /// Defines the size of the Vector4d struct in bytes.
/// </summary> /// </summary>