Added SizeInBytes readonly field. Made UnitX/Y/Z fields readonly.
This commit is contained in:
parent
3c79815596
commit
61b1a4f804
1 changed files with 6 additions and 4 deletions
|
@ -35,10 +35,12 @@ namespace OpenTK.Math
|
|||
/// </summary>
|
||||
public float Z;
|
||||
|
||||
public static Vector3 UnitX = new Vector3(1, 0, 0);
|
||||
public static Vector3 UnitY = new Vector3(0, 1, 0);
|
||||
public static Vector3 UnitZ = new Vector3(0, 0, 1);
|
||||
public static Vector3 Zero = new Vector3(0, 0, 0);
|
||||
public static readonly Vector3 UnitX = new Vector3(1, 0, 0);
|
||||
public static readonly Vector3 UnitY = new Vector3(0, 1, 0);
|
||||
public static readonly Vector3 UnitZ = new Vector3(0, 0, 1);
|
||||
public static readonly Vector3 Zero = new Vector3(0, 0, 0);
|
||||
|
||||
public static readonly int SizeInBytes = Marshal.SizeOf(new Vector3());
|
||||
|
||||
#endregion
|
||||
|
||||
|
|
Loading…
Reference in a new issue