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