Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NormalizedUnsignedShort4"/> structure from the specified vector.
 /// </summary>
 /// <param name="vector">The vector from which to create the packed instance.</param>
 public NormalizedUnsignedShort4(Vector4 vector)
 {
     this.X = (UInt16)PackedVectorUtils.PackNormalizedUnsigned(PackingMask, vector.X);
     this.Y = (UInt16)PackedVectorUtils.PackNormalizedUnsigned(PackingMask, vector.Y);
     this.Z = (UInt16)PackedVectorUtils.PackNormalizedUnsigned(PackingMask, vector.Z);
     this.W = (UInt16)PackedVectorUtils.PackNormalizedUnsigned(PackingMask, vector.W);
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NormalizedUnsignedShort4"/> 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 NormalizedUnsignedShort4(Single x, Single y, Single z, Single w)
 {
     this.X = (UInt16)PackedVectorUtils.PackNormalizedUnsigned(PackingMask, x);
     this.Y = (UInt16)PackedVectorUtils.PackNormalizedUnsigned(PackingMask, y);
     this.Z = (UInt16)PackedVectorUtils.PackNormalizedUnsigned(PackingMask, z);
     this.W = (UInt16)PackedVectorUtils.PackNormalizedUnsigned(PackingMask, w);
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NormalizedUnsignedInt4"/> structure from the specified vector.
 /// </summary>
 /// <param name="vector">The vector from which to create the packed instance.</param>
 public NormalizedUnsignedInt4(Vector4 vector)
 {
     this.X = PackedVectorUtils.PackNormalizedUnsigned(PackingMask, vector.X);
     this.Y = PackedVectorUtils.PackNormalizedUnsigned(PackingMask, vector.Y);
     this.Z = PackedVectorUtils.PackNormalizedUnsigned(PackingMask, vector.Z);
     this.W = PackedVectorUtils.PackNormalizedUnsigned(PackingMask, vector.W);
 }
Beispiel #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NormalizedUnsignedInt4"/> 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 NormalizedUnsignedInt4(Single x, Single y, Single z, Single w)
 {
     this.X = PackedVectorUtils.PackNormalizedUnsigned(PackingMask, x);
     this.Y = PackedVectorUtils.PackNormalizedUnsigned(PackingMask, y);
     this.Z = PackedVectorUtils.PackNormalizedUnsigned(PackingMask, z);
     this.W = PackedVectorUtils.PackNormalizedUnsigned(PackingMask, w);
 }
Beispiel #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NormalizedByte4"/> structure from the specified vector.
 /// </summary>
 /// <param name="vector">The vector from which to create the packed instance.</param>
 public NormalizedByte4(Vector4 vector)
 {
     this.X = (Byte)PackedVectorUtils.PackNormalizedUnsigned(PackingMask, vector.X);
     this.Y = (Byte)PackedVectorUtils.PackNormalizedUnsigned(PackingMask, vector.Y);
     this.Z = (Byte)PackedVectorUtils.PackNormalizedUnsigned(PackingMask, vector.Z);
     this.W = (Byte)PackedVectorUtils.PackNormalizedUnsigned(PackingMask, vector.W);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="NormalizedUnsignedShort1"/> structure from the specified vector components.
 /// </summary>
 /// <param name="x">The x-component from  which to create the packed instance.</param>
 public NormalizedUnsignedShort1(Single x)
 {
     this.X = (UInt16)PackedVectorUtils.PackNormalizedUnsigned(PackingMask, x);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="NormalizedByte1"/> structure from the specified vector components.
 /// </summary>
 /// <param name="x">The x-component from  which to create the packed instance.</param>
 public NormalizedByte1(Single x)
 {
     this.X = (Byte)PackedVectorUtils.PackNormalizedUnsigned(PackingMask, x);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="NormalizedByte2"/> 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 NormalizedByte2(Single x, Single y)
 {
     this.X = (Byte)PackedVectorUtils.PackNormalizedUnsigned(PackingMask, x);
     this.Y = (Byte)PackedVectorUtils.PackNormalizedUnsigned(PackingMask, y);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="NormalizedByte2"/> structure from the specified vector.
 /// </summary>
 /// <param name="vector">The vector from which to create the packed instance.</param>
 public NormalizedByte2(Vector2 vector)
 {
     this.X = (Byte)PackedVectorUtils.PackNormalizedUnsigned(PackingMask, vector.X);
     this.Y = (Byte)PackedVectorUtils.PackNormalizedUnsigned(PackingMask, vector.Y);
 }
Beispiel #10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NormalizedUnsignedInt2"/> 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 NormalizedUnsignedInt2(Single x, Single y)
 {
     this.X = PackedVectorUtils.PackNormalizedUnsigned(PackingMask, x);
     this.Y = PackedVectorUtils.PackNormalizedUnsigned(PackingMask, y);
 }
Beispiel #11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NormalizedUnsignedInt2"/> structure from the specified vector.
 /// </summary>
 /// <param name="vector">The vector from which to create the packed instance.</param>
 public NormalizedUnsignedInt2(Vector2 vector)
 {
     this.X = PackedVectorUtils.PackNormalizedUnsigned(PackingMask, vector.X);
     this.Y = PackedVectorUtils.PackNormalizedUnsigned(PackingMask, vector.Y);
 }
Beispiel #12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NormalizedUnsignedShort3"/> 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 NormalizedUnsignedShort2(Single x, Single y)
 {
     this.X = (UInt16)PackedVectorUtils.PackNormalizedUnsigned(PackingMask, x);
     this.Y = (UInt16)PackedVectorUtils.PackNormalizedUnsigned(PackingMask, y);
 }
Beispiel #13
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NormalizedUnsignedShort2"/> structure from the specified vector.
 /// </summary>
 /// <param name="vector">The vector from which to create the packed instance.</param>
 public NormalizedUnsignedShort2(Vector2 vector)
 {
     this.X = (UInt16)PackedVectorUtils.PackNormalizedUnsigned(PackingMask, vector.X);
     this.Y = (UInt16)PackedVectorUtils.PackNormalizedUnsigned(PackingMask, vector.Y);
 }