コード例 #1
0
ファイル: Byte4.cs プロジェクト: ByteDecoder/ultraviolet
 /// <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);
 }
コード例 #2
0
 /// <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);
 }
コード例 #3
0
ファイル: Byte4.cs プロジェクト: ByteDecoder/ultraviolet
 /// <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);
 }
コード例 #4
0
 /// <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);
 }
コード例 #5
0
 /// <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);
 }
コード例 #6
0
 /// <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);
 }
コード例 #7
0
ファイル: Byte1.cs プロジェクト: ByteDecoder/ultraviolet
 /// <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);
 }
コード例 #8
0
 /// <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);
 }
コード例 #9
0
 /// <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);
 }
コード例 #10
0
 /// <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);
 }
コード例 #11
0
 /// <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);
 }
コード例 #12
0
 /// <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);
 }
コード例 #13
0
 /// <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);
 }
コード例 #14
0
 /// <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);
 }
コード例 #15
0
 /// <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);
 }