mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-23 21:30:58 +00:00
Documented static public fields.
Added missing SizeInBytes field to Vector2 and Vector4.
This commit is contained in:
parent
39d1bea45f
commit
57ff9428d6
|
@ -35,10 +35,26 @@ namespace OpenTK.Math
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float Y;
|
public float Y;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Defines a unit-length Vector2 that points towards the X-axis.
|
||||||
|
/// </summary>
|
||||||
public static Vector2 UnitX = new Vector2(1, 0);
|
public static Vector2 UnitX = new Vector2(1, 0);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Defines a unit-length Vector2 that points towards the Y-axis.
|
||||||
|
/// </summary>
|
||||||
public static Vector2 UnitY = new Vector2(0, 1);
|
public static Vector2 UnitY = new Vector2(0, 1);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Defines a zero-length Vector2.
|
||||||
|
/// </summary>
|
||||||
public static Vector2 Zero = new Vector2(0, 0);
|
public static Vector2 Zero = new Vector2(0, 0);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Defines the size of the Vector2 struct in bytes.
|
||||||
|
/// </summary>
|
||||||
|
public static readonly int SizeInBytes = Marshal.SizeOf(new Vector2());
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Constructors
|
#region Constructors
|
||||||
|
|
|
@ -37,11 +37,29 @@ namespace OpenTK.Math
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float Z;
|
public float Z;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Defines a unit-length Vector3 that points towards the X-axis.
|
||||||
|
/// </summary>
|
||||||
public static readonly Vector3 UnitX = new Vector3(1, 0, 0);
|
public static readonly Vector3 UnitX = new Vector3(1, 0, 0);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Defines a unit-length Vector3 that points towards the Y-axis.
|
||||||
|
/// </summary>
|
||||||
public static readonly Vector3 UnitY = new Vector3(0, 1, 0);
|
public static readonly Vector3 UnitY = new Vector3(0, 1, 0);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// /// Defines a unit-length Vector3 that points towards the Z-axis.
|
||||||
|
/// </summary>
|
||||||
public static readonly Vector3 UnitZ = new Vector3(0, 0, 1);
|
public static readonly Vector3 UnitZ = new Vector3(0, 0, 1);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Defines a zero-length Vector3.
|
||||||
|
/// </summary>
|
||||||
public static readonly Vector3 Zero = new Vector3(0, 0, 0);
|
public static readonly Vector3 Zero = new Vector3(0, 0, 0);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Defines the size of the Vector3 struct in bytes.
|
||||||
|
/// </summary>
|
||||||
public static readonly int SizeInBytes = Marshal.SizeOf(new Vector3());
|
public static readonly int SizeInBytes = Marshal.SizeOf(new Vector3());
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
|
@ -42,12 +42,36 @@ namespace OpenTK.Math
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float W;
|
public float W;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Defines a unit-length Vector4 that points towards the X-axis.
|
||||||
|
/// </summary>
|
||||||
public static Vector4 UnitX = new Vector4(1, 0, 0, 0);
|
public static Vector4 UnitX = new Vector4(1, 0, 0, 0);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Defines a unit-length Vector4 that points towards the Y-axis.
|
||||||
|
/// </summary>
|
||||||
public static Vector4 UnitY = new Vector4(0, 1, 0, 0);
|
public static Vector4 UnitY = new Vector4(0, 1, 0, 0);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Defines a unit-length Vector4 that points towards the Z-axis.
|
||||||
|
/// </summary>
|
||||||
public static Vector4 UnitZ = new Vector4(0, 0, 1, 0);
|
public static Vector4 UnitZ = new Vector4(0, 0, 1, 0);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Defines a unit-length Vector4 that points towards the W-axis.
|
||||||
|
/// </summary>
|
||||||
public static Vector4 UnitW = new Vector4(0, 0, 0, 1);
|
public static Vector4 UnitW = new Vector4(0, 0, 0, 1);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Defines a zero-length Vector4.
|
||||||
|
/// </summary>
|
||||||
public static Vector4 Zero = new Vector4(0, 0, 0, 0);
|
public static Vector4 Zero = new Vector4(0, 0, 0, 0);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Defines the size of the Vector4 struct in bytes.
|
||||||
|
/// </summary>
|
||||||
|
public static readonly int SizeInBytes = Marshal.SizeOf(new Vector4());
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Constructors
|
#region Constructors
|
||||||
|
|
Loading…
Reference in a new issue