/// <summary> /// Initializes a new instance of the <see cref="NormalizedShort4"/> structure from the specified vector. /// </summary> /// <param name="vector">The vector from which to create the packed instance.</param> public NormalizedShort4(Vector4 vector) { this.X = (UInt16)PackedVectorUtils.PackNormalizedSigned(PackingMask, vector.X); this.Y = (UInt16)PackedVectorUtils.PackNormalizedSigned(PackingMask, vector.Y); this.Z = (UInt16)PackedVectorUtils.PackNormalizedSigned(PackingMask, vector.Z); this.W = (UInt16)PackedVectorUtils.PackNormalizedSigned(PackingMask, vector.W); }
/// <summary> /// Initializes a new instance of the <see cref="NormalizedShort4"/> 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 NormalizedShort4(Single x, Single y, Single z, Single w) { this.X = (UInt16)PackedVectorUtils.PackNormalizedSigned(PackingMask, x); this.Y = (UInt16)PackedVectorUtils.PackNormalizedSigned(PackingMask, y); this.Z = (UInt16)PackedVectorUtils.PackNormalizedSigned(PackingMask, z); this.W = (UInt16)PackedVectorUtils.PackNormalizedSigned(PackingMask, w); }
/// <summary> /// Initializes a new instance of the <see cref="NormalizedSByte4"/> structure from the specified vector. /// </summary> /// <param name="vector">The vector from which to create the packed instance.</param> public NormalizedSByte4(Vector4 vector) { this.X = (Byte)PackedVectorUtils.PackNormalizedSigned(PackingMask, vector.X); this.Y = (Byte)PackedVectorUtils.PackNormalizedSigned(PackingMask, vector.Y); this.Z = (Byte)PackedVectorUtils.PackNormalizedSigned(PackingMask, vector.Z); this.W = (Byte)PackedVectorUtils.PackNormalizedSigned(PackingMask, vector.W); }
/// <summary> /// Initializes a new instance of the <see cref="NormalizedInt4"/> 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 NormalizedInt4(Single x, Single y, Single z, Single w) { this.X = PackedVectorUtils.PackNormalizedSigned(PackingMask, x); this.Y = PackedVectorUtils.PackNormalizedSigned(PackingMask, y); this.Z = PackedVectorUtils.PackNormalizedSigned(PackingMask, z); this.W = PackedVectorUtils.PackNormalizedSigned(PackingMask, w); }
/// <summary> /// Initializes a new instance of the <see cref="NormalizedInt4"/> structure from the specified vector. /// </summary> /// <param name="vector">The vector from which to create the packed instance.</param> public NormalizedInt4(Vector4 vector) { this.X = PackedVectorUtils.PackNormalizedSigned(PackingMask, vector.X); this.Y = PackedVectorUtils.PackNormalizedSigned(PackingMask, vector.Y); this.Z = PackedVectorUtils.PackNormalizedSigned(PackingMask, vector.Z); this.W = PackedVectorUtils.PackNormalizedSigned(PackingMask, vector.W); }
/// <summary> /// Initializes a new instance of the <see cref="NormalizedSByte1"/> structure from the specified vector components. /// </summary> /// <param name="x">The x-component from which to create the packed instance.</param> public NormalizedSByte1(Single x) { this.X = (Byte)PackedVectorUtils.PackNormalizedSigned(PackingMask, x); }
/// <summary> /// Initializes a new instance of the <see cref="NormalizedShort2"/> 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 NormalizedShort2(Single x, Single y) { this.X = (UInt16)PackedVectorUtils.PackNormalizedSigned(PackingMask, x); this.Y = (UInt16)PackedVectorUtils.PackNormalizedSigned(PackingMask, y); }
/// <summary> /// Initializes a new instance of the <see cref="NormalizedShort2"/> structure from the specified vector. /// </summary> /// <param name="vector">The vector from which to create the packed instance.</param> public NormalizedShort2(Vector2 vector) { this.X = (UInt16)PackedVectorUtils.PackNormalizedSigned(PackingMask, vector.X); this.Y = (UInt16)PackedVectorUtils.PackNormalizedSigned(PackingMask, vector.Y); }
/// <summary> /// Initializes a new instance of the <see cref="NormalizedSByte3"/> 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> public NormalizedSByte3(Single x, Single y, Single z) { this.X = (Byte)PackedVectorUtils.PackNormalizedSigned(PackingMask, x); this.Y = (Byte)PackedVectorUtils.PackNormalizedSigned(PackingMask, y); this.Z = (Byte)PackedVectorUtils.PackNormalizedSigned(PackingMask, z); }
/// <summary> /// Initializes a new instance of the <see cref="NormalizedInt2"/> 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 NormalizedInt2(Single x, Single y) { this.X = PackedVectorUtils.PackNormalizedSigned(PackingMask, x); this.Y = PackedVectorUtils.PackNormalizedSigned(PackingMask, y); }
/// <summary> /// Initializes a new instance of the <see cref="NormalizedInt2"/> structure from the specified vector. /// </summary> /// <param name="vector">The vector from which to create the packed instance.</param> public NormalizedInt2(Vector2 vector) { this.X = PackedVectorUtils.PackNormalizedSigned(PackingMask, vector.X); this.Y = PackedVectorUtils.PackNormalizedSigned(PackingMask, vector.Y); }
/// <summary> /// Initializes a new instance of the <see cref="NormalizedSByte2"/> structure from the specified vector. /// </summary> /// <param name="vector">The vector from which to create the packed instance.</param> public NormalizedSByte2(Vector2 vector) { this.X = (Byte)PackedVectorUtils.PackNormalizedSigned(PackingMask, vector.X); this.Y = (Byte)PackedVectorUtils.PackNormalizedSigned(PackingMask, vector.Y); }
/// <summary> /// Initializes a new instance of the <see cref="NormalizedShort1"/> structure from the specified vector components. /// </summary> /// <param name="x">The x-component from which to create the packed instance.</param> public NormalizedShort1(Single x) { this.X = (UInt16)PackedVectorUtils.PackNormalizedSigned(PackingMask, x); }