コード例 #1
0
 /**
  * Copy constructor.
  *
  * @param tuple Tuple.
  */
 public BuffTuple3b(Tuple tuple)
 {
     if (tuple is Tuple3b)
     {
         Tuple3b _tuple = (Tuple3b)tuple;
         this.x = _tuple.GetX();
         this.y = _tuple.GetY();
         this.z = _tuple.GetZ();
     }
     else if (tuple is BuffTuple3b)
     {
         BuffTuple3b _tuple = (BuffTuple3b)tuple;
         this.x = _tuple.GetX();
         this.y = _tuple.GetY();
         this.z = _tuple.GetZ();
     }
     else
     {
         Tuple3b _tuple = new Tuple3b(tuple);
         this.x = _tuple.GetX();
         this.y = _tuple.GetY();
         this.z = _tuple.GetZ();
     }
 }
コード例 #2
0
 public bool Equals(Tuple3b other)
 {
     return(Equals(other.GetX(),
                   other.GetY(),
                   other.GetZ()));
 }
コード例 #3
0
 public bool EpsilonEquals(Tuple3b other, double epsilon = EPSILON)
 {
     return(EpsilonEquals(other.GetX(),
                          other.GetY(),
                          other.GetZ(), epsilon));
 }
コード例 #4
0
 /**
  * Copy constructor.
  *
  * @param tuple Tuple.
  */
 public BuffTuple3b(Tuple3b tuple)
 {
     this.x = tuple.GetX();
     this.y = tuple.GetY();
     this.z = tuple.GetZ();
 }