Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Vector8sb"/> 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 Vector8sb(Vector4sb value, sbyte v4, sbyte v5, sbyte v6, sbyte v7, sbyte v8, sbyte v9, sbyte v10, sbyte v11)
 {
     V0 = value.X;
     V1 = value.Y;
     V2 = value.Z;
     V3 = value.W;
     V4 = v4;
     V5 = v5;
     V6 = v6;
     V7 = v7;
 }
Exemplo n.º 2
0
 /// <summary>Read an array of <c>Vector4sb</c> values.</summary>
 public static Vector4sb[] ReadArrayVector4sb(this BinaryReader reader, int count)
 {
     Vector4sb[] array = new Vector4sb[count]; reader.ReadArray(array, 0, count); return array;
 }
Exemplo n.º 3
0
 /// <summary>Read a <see cref="Vector4sb"/>.</summary>
 public static void ReadVector4sb(this BinaryReader reader , out Vector4sb result)
 {
     result.X = reader.ReadSByte();
                                 result.Y = reader.ReadSByte();
                                 result.Z = reader.ReadSByte();
                                 result.W = reader.ReadSByte();
             return;
 }