コード例 #1
0
ファイル: Tuple4b.cs プロジェクト: JamesTryand/NVecMath
 /// <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;
 }
コード例 #2
0
ファイル: Tuple4b.cs プロジェクト: JamesTryand/NVecMath
 /// <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;
     }
 }
コード例 #3
0
ファイル: Tuple4b.cs プロジェクト: JamesTryand/NVecMath
 /// <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;
 }
コード例 #4
0
ファイル: Color4b.cs プロジェクト: JamesTryand/NVecMath
 /// <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)
 {
 }