/// <summary>Constructs and initializes a Tuple4b from the specified Tuple4b.</summary> /// <remarks>Constructs and initializes a Tuple4b from the specified Tuple4b.</remarks> /// <param name="t1">the Tuple4b containing the initialization x y z w data</param> public Tuple4b(Tuple4b t1) { this.x = t1.x; this.y = t1.y; this.z = t1.z; this.w = t1.w; }
/// <summary> /// Returns true if all of the data members of tuple t1 are equal to /// the corresponding data members in this tuple. /// </summary> /// <remarks> /// Returns true if all of the data members of tuple t1 are equal to /// the corresponding data members in this tuple. /// </remarks> /// <param name="t1">the tuple with which the comparison is made</param> public virtual bool Equals(Tuple4b t1) { try { return (this.x == t1.x && this.y == t1.y && this.z == t1.z && this.w == t1.w); } catch (ArgumentNullException) { return false; } }
/// <summary> /// Sets the value of the data members of this tuple to the value /// of the argument tuple t1. /// </summary> /// <remarks> /// Sets the value of the data members of this tuple to the value /// of the argument tuple t1. /// </remarks> /// <param name="t1">the source tuple</param> public void Set(Tuple4b t1) { this.x = t1.x; this.y = t1.y; this.z = t1.z; this.w = t1.w; }
/// <summary>Constructs and initializes a Color4b from the specified Tuple4b.</summary> /// <remarks>Constructs and initializes a Color4b from the specified Tuple4b.</remarks> /// <param name="t1"> /// the Tuple4b containing the initialization r,g,b,a /// data /// </param> public Color4b(Tuple4b t1) : base(t1) { }