Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the HalfVector4 structure.
 /// </summary>
 /// <param name="vector">A vector containing the initial values for the components of the HalfVector4 structure.</param>
 public HalfVector4(Vector4 vector)
 {
     this.PackedValue = HalfVector4.PackHelper(vector.X, vector.Y, vector.Z, vector.W);
 }
Ejemplo n.º 2
0
 void IPackedVector.PackFromVector4(Vector4 vector)
 {
     this.PackedValue = HalfVector4.PackHelper(vector.X, vector.Y, vector.Z, vector.W);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the HalfVector4 class.
 /// </summary>
 /// <param name="x">Initial value for the x component.</param><param name="y">Initial value for the y component.</param><param name="z">Initial value for the z component.</param><param name="w">Initial value for the w component.</param>
 public HalfVector4(float x, float y, float z, float w)
 {
     this.PackedValue = HalfVector4.PackHelper(x, y, z, w);
 }