Exemple #1
0
 void IPackedVector.PackFromVector4(Vector4 vector)
 {
     this.packedValue = NormalizedByte4.PackHelper(vector.X, vector.Y, vector.Z, vector.W);
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the NormalizedByte4 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 NormalizedByte4(float x, float y, float z, float w)
 {
     this.packedValue = NormalizedByte4.PackHelper(x, y, z, w);
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the NormalizedByte4 structure.
 /// </summary>
 /// <param name="vector">A vector containing the initial values for the components of the NormalizedByte4 structure.</param>
 public NormalizedByte4(Vector4 vector)
 {
     this.packedValue = NormalizedByte4.PackHelper(vector.X, vector.Y, vector.Z, vector.W);
 }
Exemple #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(NormalizedByte4 other)
 {
     return(this.packedValue.Equals(other.packedValue));
 }