Ejemplo n.º 1
0
 /// <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);
 }
Ejemplo n.º 2
0
 /// <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);
 }
Ejemplo n.º 3
0
 /// <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);
 }
Ejemplo n.º 4
0
 /// <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);
 }
Ejemplo n.º 5
0
 /// <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);
 }
Ejemplo n.º 6
0
 /// <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);
 }
Ejemplo n.º 7
0
 /// <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);
 }
Ejemplo n.º 8
0
 /// <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);
 }
Ejemplo n.º 9
0
 /// <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);
 }
Ejemplo n.º 10
0
 /// <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);
 }
Ejemplo n.º 11
0
 /// <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);
 }
Ejemplo n.º 12
0
 /// <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);
 }
Ejemplo n.º 13
0
 /// <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);
 }