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

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