/// <summary> /// Initializes a new instance of the <see cref="T:DXPlayground.Mathematics.Half3" /> structure. /// </summary> /// <param name="x">The X component.</param> /// <param name="y">The Y component.</param> /// <param name="z">The Z component.</param> public Half3(float x, float y, float z) { X = new Half(x); Y = new Half(y); Z = new Half(z); }
/// <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); }
/// <summary> /// Initializes a new instance of the <see cref="T:DXPlayground.Mathematics.Half3" /> structure. /// </summary> /// <param name="x">The X component.</param> /// <param name="y">The Y component.</param> /// <param name="z">The Z component.</param> public Half3(Half x, Half y, Half z) { X = x; Y = y; Z = z; }
public static bool Equals(ref Half value1, ref Half value2) { return(value1.value == value2.value); }