Пример #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();
     }
 }
Пример #2
0
 public bool Equals(Tuple4b other)
 {
     return(Equals(other.GetX(),
                   other.GetY(),
                   other.GetZ(),
                   other.GetW()));
 }
Пример #3
0
 public bool EpsilonEquals(Tuple4b other, double epsilon = EPSILON)
 {
     return(EpsilonEquals(other.GetX(),
                          other.GetY(),
                          other.GetZ(),
                          other.GetW(), epsilon));
 }
Пример #4
0
 /**
  * Copy constructor.
  *
  * @param tuple Tuple.
  */
 public BuffTuple4b(Tuple4b tuple)
 {
     this.x = tuple.GetX();
     this.y = tuple.GetY();
     this.z = tuple.GetZ();
     this.w = tuple.GetW();
 }