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

            return(copy);
        }
예제 #5
0
 /**
  * Copy constructor.
  *
  * @param tuple Tuple.
  */
 public BuffTuple2d(BuffTuple2d tuple)
 {
     this.x = tuple.GetX();
     this.y = tuple.GetY();
 }