예제 #1
0
 void IPackedVector.PackFromVector4(Vector4 vector)
 {
     this.packedValue = HalfVector4.PackHelper(vector.X, vector.Y, vector.Z, vector.W);
 }
예제 #2
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);
 }
예제 #3
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);
 }
예제 #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(HalfVector4 other)
 {
     return(this.packedValue.Equals(other.packedValue));
 }