Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Vector8us"/> using the specified vector and values.
 /// </summary>
 /// <param name="value">A vector containing the values with which to initialize the first 4 components</param>
 /// <param name="v4">Value for the V4 component of the vector.</param>
 /// <param name="v5">Value for the V5 component of the vector.</param>
 /// <param name="v6">Value for the V6 component of the vector.</param>
 /// <param name="v7">Value for the V7 component of the vector.</param>
 public Vector8us(Vector4us value, ushort v4, ushort v5, ushort v6, ushort v7, ushort v8, ushort v9, ushort v10, ushort v11)
 {
     V0 = value.X;
     V1 = value.Y;
     V2 = value.Z;
     V3 = value.W;
     V4 = v4;
     V5 = v5;
     V6 = v6;
     V7 = v7;
 }
Example #2
0
 /// <summary>Read an array of <c>Vector4us</c> values.</summary>
 public static Vector4us[] ReadArrayVector4us(this BinaryReader reader, int count)
 {
     Vector4us[] array = new Vector4us[count]; reader.ReadArray(array, 0, count); return array;
 }
Example #3
0
 /// <summary>Read a <see cref="Vector4us"/>.</summary>
 public static void ReadVector4us(this BinaryReader reader , out Vector4us result)
 {
     result.X = reader.ReadUInt16();
                                 result.Y = reader.ReadUInt16();
                                 result.Z = reader.ReadUInt16();
                                 result.W = reader.ReadUInt16();
             return;
 }