Added SizeInBytes readonly field. Made UnitX/Y/Z fields readonly.

This commit is contained in:
the_fiddler 2007-11-06 20:59:39 +00:00
parent 3c79815596
commit 61b1a4f804

View file

@ -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