示例#1
0
 /// <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);
 }
示例#2
0
 /// <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;
 }
示例#3
0
文件: Int3.cs 项目: equalent/FlaxAPI
 /// <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;
 }