Example #1
0
 /**
  * Copy constructor.
  *
  * @param tuple Tuple.
  */
 public BuffTuple4f(Tuple tuple)
 {
     if (tuple is Tuple4f)
     {
         Tuple4f _tuple = (Tuple4f)tuple;
         this.x = _tuple.GetX();
         this.y = _tuple.GetY();
         this.z = _tuple.GetZ();
         this.w = _tuple.GetW();
     }
     else if (tuple is BuffTuple4f)
     {
         BuffTuple4f _tuple = (BuffTuple4f)tuple;
         this.x = _tuple.GetX();
         this.y = _tuple.GetY();
         this.z = _tuple.GetZ();
         this.w = _tuple.GetW();
     }
     else
     {
         Tuple4f _tuple = new Tuple4f(tuple);
         this.x = _tuple.GetX();
         this.y = _tuple.GetY();
         this.z = _tuple.GetZ();
         this.w = _tuple.GetW();
     }
 }
Example #2
0
 /**
  * Copy constructor.
  *
  * @param tuple Tuple.
  */
 public BuffTuple4f(BuffTuple4f tuple)
 {
     this.x = tuple.GetX();
     this.y = tuple.GetY();
     this.z = tuple.GetZ();
     this.w = tuple.GetW();
 }
Example #3
0
 public bool EpsilonEquals(BuffTuple4f other, double epsilon = EPSILON)
 {
     if (other == this)
     {
         return(true);
     }
     return(EpsilonEquals(other.GetX(),
                          other.GetY(),
                          other.GetZ(),
                          other.GetW(), epsilon));
 }
Example #4
0
 public bool Equals(BuffTuple4f other)
 {
     if (other == this)
     {
         return(true);
     }
     return(Equals(other.GetX(),
                   other.GetY(),
                   other.GetZ(),
                   other.GetW()));
 }
Example #5
0
        public BuffTuple4f Clone()
        {
            BuffTuple4f copy = (BuffTuple4f)base.Clone();

            return(copy);
        }