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

            return(copy);
        }
コード例 #5
0
 /**
  * Copy constructor.
  *
  * @param tuple Tuple.
  */
 public BuffTuple2i(BuffTuple2i tuple)
 {
     this.x = tuple.GetX();
     this.y = tuple.GetY();
 }