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 3 components</param>
 /// <param name="v3">Value for the V3 component of the vector.</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(Vector3sb value, sbyte v3, sbyte v4, sbyte v5, sbyte v6, sbyte v7, sbyte v8, sbyte v9, sbyte v10)
 {
     V0 = value.X;
     V1 = value.Y;
     V2 = value.Z;
     V3 = v3;
     V4 = v4;
     V5 = v5;
     V6 = v6;
     V7 = v7;
 }
Exemplo n.º 2
0
 /// <summary>Read an array of <c>Vector3sb</c> values.</summary>
 public static Vector3sb[] ReadArrayVector3sb(this BinaryReader reader, int count)
 {
     Vector3sb[] array = new Vector3sb[count]; reader.ReadArray(array, 0, count); return array;
 }
Exemplo n.º 3
0
 /// <summary>Read a <see cref="Vector3sb"/>.</summary>
 public static void ReadVector3sb(this BinaryReader reader , out Vector3sb result)
 {
     result.X = reader.ReadSByte();
                                 result.Y = reader.ReadSByte();
                                 result.Z = reader.ReadSByte();
             return;
 }