/// <summary> /// Writes the Int4 to the binary stream. /// </summary> /// <param name="stream">The stream.</param> /// <param name="value">The value to write.</param> public static void Write(this BinaryWriter stream, Int4 value) { stream.Write(value.X); stream.Write(value.Y); stream.Write(value.Z); stream.Write(value.W); }
/// <summary> /// Initializes a new instance of the <see cref="Int2" /> struct. /// </summary> /// <param name="value">A vector containing the values with which to initialize the X and Y components.</param> public Int2(Int4 value) { X = value.X; Y = value.Y; }
/// <summary> /// Initializes a new instance of the <see cref="Int3" /> struct. /// </summary> /// <param name="value">A vector containing the values with which to initialize the X, Y and Z components.</param> public Int3(Int4 value) { X = value.X; Y = value.Y; Z = value.Z; }