public bool EpsilonEquals(BuffTuple3d other, double epsilon = EPSILON)
 {
     if (other == this)
     {
         return(true);
     }
     return(EpsilonEquals(other.GetX(),
                          other.GetY(),
                          other.GetZ(), epsilon));
 }
 public bool Equals(BuffTuple3d other)
 {
     if (other == this)
     {
         return(true);
     }
     return(Equals(other.GetX(),
                   other.GetY(),
                   other.GetZ()));
 }
Exemple #3
0
 /**
  * Copy constructor.
  *
  * @param tuple Tuple.
  */
 public Vector3d(Tuple tuple)
 {
     if (tuple is Tuple3d)
     {
         Tuple3d _tuple = (Tuple3d)tuple;
         this.x = _tuple.GetX();
         this.y = _tuple.GetY();
         this.z = _tuple.GetZ();
     }
     else if (tuple is BuffTuple3d)
     {
         BuffTuple3d _tuple = (BuffTuple3d)tuple;
         this.x = _tuple.GetX();
         this.y = _tuple.GetY();
         this.z = _tuple.GetZ();
     }
     else
     {
         Tuple3d _tuple = new Tuple3d(tuple);
         this.x = _tuple.GetX();
         this.y = _tuple.GetY();
         this.z = _tuple.GetZ();
     }
 }
Exemple #4
0
 /**
  * Copy constructor.
  *
  * @param tuple Tuple.
  */
 public Vector3d(BuffTuple3d tuple)
 {
     this.x = tuple.GetX();
     this.y = tuple.GetY();
     this.z = tuple.GetZ();
 }