示例#1
0
 void IPackedVector.PackFromVector4(Vector4 vector)
 {
     this.packedValue = HalfVector2.PackHelper(vector.X, vector.Y);
 }
示例#2
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);
 }
示例#3
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);
 }
示例#4
0
 /// <summary>
 /// Returns a value that indicates whether the current instance is equal to a specified object.
 /// </summary>
 /// <param name="other">The object with which to make the comparison.</param>
 public bool Equals(HalfVector2 other)
 {
     return(this.packedValue.Equals(other.packedValue));
 }