示例#1
0
 protected bool Equals(Vector2ui other)
 {
     return X == other.X && Y == other.Y;
 }
示例#2
0
 /// <summary>Read a <see cref="Vector2ui"/>.</summary>
 public static void ReadVector2ui(this BinaryReader reader , out Vector2ui result)
 {
     result.X = reader.ReadUInt32();
                                 result.Y = reader.ReadUInt32();
             return;
 }
示例#3
0
 /// <summary>Read an array of <c>Vector2ui</c> values.</summary>
 public static Vector2ui[] ReadArrayVector2ui(this BinaryReader reader, int count)
 {
     Vector2ui[] array = new Vector2ui[count]; reader.ReadArray(array, 0, count); return array;
 }
 public void Set(ref Vector2ui value)
 {
     unsafe { fixed(Vector2ui* pointer = &value) Set2(1, (uint*)pointer); }
 }
 public void Set(Vector2ui value)
 {
     unsafe { Set2(1, (uint*)&value); }
 }
 static unsafe void FromUInt32(int first, int count, IList<Vector2ui> data)
 {
     for(int index = 0; index < count; index++)data[first + index] = new Vector2ui((uint)( *((System.UInt32*)list.ToPointer() + (index + 0) * 4 * 2) ), (uint)( *((System.UInt32*)list.ToPointer() + (index + 1) * 4 * 2) ));
 }
 static unsafe void FromBoolean(int first, int count, IList<Vector2ui> data)
 {
     for(int index = 0; index < count; index++)data[first + index] = new Vector2ui((uint)( Marshal.ReadInt32(list, (index + 0) * 4 * 2 * 4) != 0 ? 1 : 0 ), (uint)( Marshal.ReadInt32(list, (index + 1) * 4 * 2 * 4) != 0 ? 1 : 0 ));
 }
示例#8
0
 protected bool Equals(Vector2ui other)
 {
     return(X == other.X && Y == other.Y);
 }