Esempio n. 1
0
 /**
  * Copy constructor.
  *
  * @param tuple Tuple.
  */
 public BuffTuple4b(Tuple tuple)
 {
     if (tuple is Tuple4b)
     {
         Tuple4b _tuple = (Tuple4b)tuple;
         this.x = _tuple.GetX();
         this.y = _tuple.GetY();
         this.z = _tuple.GetZ();
         this.w = _tuple.GetW();
     }
     else if (tuple is BuffTuple4b)
     {
         BuffTuple4b _tuple = (BuffTuple4b)tuple;
         this.x = _tuple.GetX();
         this.y = _tuple.GetY();
         this.z = _tuple.GetZ();
         this.w = _tuple.GetW();
     }
     else
     {
         Tuple4b _tuple = new Tuple4b(tuple);
         this.x = _tuple.GetX();
         this.y = _tuple.GetY();
         this.z = _tuple.GetZ();
         this.w = _tuple.GetW();
     }
 }
Esempio n. 2
0
 /**
  * Copy constructor.
  *
  * @param tuple Tuple.
  */
 public BuffTuple4b(BuffTuple4b tuple)
 {
     this.x = tuple.GetX();
     this.y = tuple.GetY();
     this.z = tuple.GetZ();
     this.w = tuple.GetW();
 }
Esempio n. 3
0
 public bool EpsilonEquals(BuffTuple4b other, double epsilon = EPSILON)
 {
     if (other == this)
     {
         return(true);
     }
     return(EpsilonEquals(other.GetX(),
                          other.GetY(),
                          other.GetZ(),
                          other.GetW(), epsilon));
 }
Esempio n. 4
0
 public bool Equals(BuffTuple4b other)
 {
     if (other == this)
     {
         return(true);
     }
     return(Equals(other.GetX(),
                   other.GetY(),
                   other.GetZ(),
                   other.GetW()));
 }