/// <summary> /// Initializes a new instance of the <see cref="Byte4"/> structure from the specified vector components. /// </summary> /// <param name="x">The x-component from which to create the packed instance.</param> /// <param name="y">The y-component from which to create the packed instance.</param> /// <param name="z">The z-component from which to create the packed instance.</param> /// <param name="w">The w-component from which to create the packed instance.</param> public Byte4(Single x, Single y, Single z, Single w) { this.X = (Byte)PackedVectorUtils.PackUnsigned(PackingMask, x); this.Y = (Byte)PackedVectorUtils.PackUnsigned(PackingMask, y); this.Z = (Byte)PackedVectorUtils.PackUnsigned(PackingMask, z); this.W = (Byte)PackedVectorUtils.PackUnsigned(PackingMask, w); }
/// <summary> /// Initializes a new instance of the <see cref="UnsignedInt4"/> structure from the specified vector components. /// </summary> /// <param name="x">The x-component from which to create the packed instance.</param> /// <param name="y">The y-component from which to create the packed instance.</param> /// <param name="z">The z-component from which to create the packed instance.</param> /// <param name="w">The w-component from which to create the packed instance.</param> public UnsignedInt4(Single x, Single y, Single z, Single w) { this.X = PackedVectorUtils.PackUnsigned(PackingMask, x); this.Y = PackedVectorUtils.PackUnsigned(PackingMask, y); this.Z = PackedVectorUtils.PackUnsigned(PackingMask, z); this.W = PackedVectorUtils.PackUnsigned(PackingMask, w); }
/// <summary> /// Initializes a new instance of the <see cref="Byte4"/> structure from the specified vector. /// </summary> /// <param name="vector">The vector from which to create the packed instance.</param> public Byte4(Vector4 vector) { this.X = (Byte)PackedVectorUtils.PackUnsigned(PackingMask, vector.X); this.Y = (Byte)PackedVectorUtils.PackUnsigned(PackingMask, vector.Y); this.Z = (Byte)PackedVectorUtils.PackUnsigned(PackingMask, vector.Z); this.W = (Byte)PackedVectorUtils.PackUnsigned(PackingMask, vector.W); }
/// <summary> /// Initializes a new instance of the <see cref="UnsignedShort4"/> structure from the specified vector components. /// </summary> /// <param name="x">The x-component from which to create the packed instance.</param> /// <param name="y">The y-component from which to create the packed instance.</param> /// <param name="z">The z-component from which to create the packed instance.</param> /// <param name="w">The w-component from which to create the packed instance.</param> public UnsignedShort4(Single x, Single y, Single z, Single w) { this.X = (UInt16)PackedVectorUtils.PackUnsigned(PackingMask, x); this.Y = (UInt16)PackedVectorUtils.PackUnsigned(PackingMask, y); this.Z = (UInt16)PackedVectorUtils.PackUnsigned(PackingMask, z); this.W = (UInt16)PackedVectorUtils.PackUnsigned(PackingMask, w); }
/// <summary> /// Initializes a new instance of the <see cref="UnsignedInt4"/> structure from the specified vector. /// </summary> /// <param name="vector">The vector from which to create the packed instance.</param> public UnsignedInt4(Vector4 vector) { this.X = PackedVectorUtils.PackUnsigned(PackingMask, vector.X); this.Y = PackedVectorUtils.PackUnsigned(PackingMask, vector.Y); this.Z = PackedVectorUtils.PackUnsigned(PackingMask, vector.Z); this.W = PackedVectorUtils.PackUnsigned(PackingMask, vector.W); }
/// <summary> /// Initializes a new instance of the <see cref="UnsignedShort4"/> structure from the specified vector. /// </summary> /// <param name="vector">The vector from which to create the packed instance.</param> public UnsignedShort4(Vector4 vector) { this.X = (UInt16)PackedVectorUtils.PackUnsigned(PackingMask, vector.X); this.Y = (UInt16)PackedVectorUtils.PackUnsigned(PackingMask, vector.Y); this.Z = (UInt16)PackedVectorUtils.PackUnsigned(PackingMask, vector.Z); this.W = (UInt16)PackedVectorUtils.PackUnsigned(PackingMask, vector.W); }
/// <summary> /// Initializes a new instance of the <see cref="Byte1"/> structure from the specified vector components. /// </summary> /// <param name="x">The x-component from which to create the packed instance.</param> public Byte1(Single x) { this.X = (Byte)PackedVectorUtils.PackUnsigned(PackingMask, x); }
/// <summary> /// Initializes a new instance of the <see cref="UnsignedInt2"/> structure from the specified vector components. /// </summary> /// <param name="x">The x-component from which to create the packed instance.</param> /// <param name="y">The y-component from which to create the packed instance.</param> public UnsignedInt2(Single x, Single y) { this.X = PackedVectorUtils.PackUnsigned(PackingMask, x); this.Y = PackedVectorUtils.PackUnsigned(PackingMask, y); }
/// <summary> /// Initializes a new instance of the <see cref="UnsignedInt2"/> structure from the specified vector. /// </summary> /// <param name="vector">The vector from which to create the packed instance.</param> public UnsignedInt2(Vector2 vector) { this.X = PackedVectorUtils.PackUnsigned(PackingMask, vector.X); this.Y = PackedVectorUtils.PackUnsigned(PackingMask, vector.Y); }
/// <summary> /// Initializes a new instance of the <see cref="UnsignedShort1"/> structure from the specified vector components. /// </summary> /// <param name="x">The x-component from which to create the packed instance.</param> public UnsignedShort1(Single x) { this.X = (UInt16)PackedVectorUtils.PackUnsigned(PackingMask, x); }
/// <summary> /// Initializes a new instance of the <see cref="UnsignedInt1"/> structure from the specified vector components. /// </summary> /// <param name="x">The x-component from which to create the packed instance.</param> public UnsignedInt1(Single x) { this.X = PackedVectorUtils.PackUnsigned(PackingMask, x); }
/// <summary> /// Initializes a new instance of the <see cref="Byte2"/> structure from the specified vector components. /// </summary> /// <param name="x">The x-component from which to create the packed instance.</param> /// <param name="y">The y-component from which to create the packed instance.</param> public Byte2(Single x, Single y) { this.X = (Byte)PackedVectorUtils.PackUnsigned(PackingMask, x); this.Y = (Byte)PackedVectorUtils.PackUnsigned(PackingMask, y); }
/// <summary> /// Initializes a new instance of the <see cref="Byte2"/> structure from the specified vector. /// </summary> /// <param name="vector">The vector from which to create the packed instance.</param> public Byte2(Vector2 vector) { this.X = (Byte)PackedVectorUtils.PackUnsigned(PackingMask, vector.X); this.Y = (Byte)PackedVectorUtils.PackUnsigned(PackingMask, vector.Y); }
/// <summary> /// Initializes a new instance of the <see cref="UnsignedShort2"/> structure from the specified vector components. /// </summary> /// <param name="x">The x-component from which to create the packed instance.</param> /// <param name="y">The y-component from which to create the packed instance.</param> public UnsignedShort2(Single x, Single y) { this.X = (UInt16)PackedVectorUtils.PackUnsigned(PackingMask, x); this.Y = (UInt16)PackedVectorUtils.PackUnsigned(PackingMask, y); }
/// <summary> /// Initializes a new instance of the <see cref="UnsignedShort2"/> structure from the specified vector. /// </summary> /// <param name="vector">The vector from which to create the packed instance.</param> public UnsignedShort2(Vector2 vector) { this.X = (UInt16)PackedVectorUtils.PackUnsigned(PackingMask, vector.X); this.Y = (UInt16)PackedVectorUtils.PackUnsigned(PackingMask, vector.Y); }