Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:SharpDX.Half2" /> structure.
 /// </summary>
 /// <param name="value">The value to set for both the X and Y components.</param>
 public Half2(Half value)
 {
     this.X = value;
     this.Y = value;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:SharpDX.Half2" /> structure.
 /// </summary>
 /// <param name="value">Value to initialize X and Y components with.</param>
 public Half2(float value)
 {
     this.X = new Half(value);
     this.Y = new Half(value);
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:SharpDX.Half2" /> structure.
 /// </summary>
 /// <param name="x">The X component.</param>
 /// <param name="y">The Y component.</param>
 public Half2(ushort x, ushort y)
 {
     this.X = new Half(x);
     this.Y = new Half(y);
 }
Esempio n. 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:SharpDX.Half2" /> structure.
 /// </summary>
 /// <param name="x">The X component.</param>
 /// <param name="y">The Y component.</param>
 public Half2(float x, float y)
 {
     this.X = new Half(x);
     this.Y = new Half(y);
 }
Esempio n. 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:SharpDX.Half2" /> structure.
 /// </summary>
 /// <param name="x">The X component.</param>
 /// <param name="y">The Y component.</param>
 public Half2(Half x, Half y)
 {
     this.X = x;
     this.Y = y;
 }
Esempio n. 6
0
 /// <summary>
 /// Returns a value that indicates whether the current instance is equal to the specified object.
 /// </summary>
 /// <param name = "other">Object to make the comparison with.</param>
 /// <returns>
 /// <c>true</c> if the current instance is equal to the specified object; <c>false</c> otherwise.</returns>
 public bool Equals(Half other)
 {
     return(other.value == value);
 }
Esempio n. 7
0
 public static bool Equals(ref Half value1, ref Half value2)
 {
     return(value1.value == value2.value);
 }