Beispiel #1
0
 /// <summary>Constructs and initializes a Color3b from the specified Tuple3b.</summary>
 /// <remarks>Constructs and initializes a Color3b from the specified Tuple3b.</remarks>
 /// <param name="t1">the Tuple3b containing the initialization r,g,b data</param>
 public Color3b(Tuple3b t1)
     : base(t1)
 {
 }
Beispiel #2
0
 /// <summary>Constructs and initializes a Tuple3b from the specified Tuple3b.</summary>
 /// <remarks>Constructs and initializes a Tuple3b from the specified Tuple3b.</remarks>
 /// <param name="t1">the Tuple3b containing the initialization x y z data</param>
 public Tuple3b(Tuple3b t1)
 {
     this.x = t1.x;
     this.y = t1.y;
     this.z = t1.z;
 }
Beispiel #3
0
 /// <summary>
 /// Places the value of the x,y,z components of this tuple into
 /// the tuple t1.
 /// </summary>
 /// <remarks>
 /// Places the value of the x,y,z components of this tuple into
 /// the tuple t1.
 /// </remarks>
 /// <param name="t1">the tuple into which the values are placed</param>
 public void Get(Tuple3b t1)
 {
     t1.x = this.x;
     t1.y = this.y;
     t1.z = this.z;
 }
Beispiel #4
0
 /// <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 for the memberwise copy</param>
 public void Set(Tuple3b t1)
 {
     this.x = t1.x;
     this.y = t1.y;
     this.z = t1.z;
 }
Beispiel #5
0
 /// <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>
 /// <returns>true or false</returns>
 public virtual bool Equals(Tuple3b t1)
 {
     try
     {
         return (this.x == t1.x && this.y == t1.y && this.z == t1.z);
     }
     catch (ArgumentNullException)
     {
         return false;
     }
 }