예제 #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 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 Vector8us(Vector3us value, ushort v3, ushort v4, ushort v5, ushort v6, ushort v7, ushort v8, ushort v9, ushort v10)
 {
     V0 = value.X;
     V1 = value.Y;
     V2 = value.Z;
     V3 = v3;
     V4 = v4;
     V5 = v5;
     V6 = v6;
     V7 = v7;
 }
예제 #2
0
 /// <summary>Read an array of <c>Vector3us</c> values.</summary>
 public static Vector3us[] ReadArrayVector3us(this BinaryReader reader, int count)
 {
     Vector3us[] array = new Vector3us[count]; reader.ReadArray(array, 0, count); return array;
 }
예제 #3
0
 /// <summary>Read a <see cref="Vector3us"/>.</summary>
 public static void ReadVector3us(this BinaryReader reader , out Vector3us result)
 {
     result.X = reader.ReadUInt16();
                                 result.Y = reader.ReadUInt16();
                                 result.Z = reader.ReadUInt16();
             return;
 }