Пример #1
0
 /**
  * Copy constructor.
  *
  * @param tuple Tuple.
  */
 public BuffTuple4d(Tuple tuple)
 {
     if (tuple is Tuple4d)
     {
         Tuple4d _tuple = (Tuple4d)tuple;
         this.x = _tuple.GetX();
         this.y = _tuple.GetY();
         this.z = _tuple.GetZ();
         this.w = _tuple.GetW();
     }
     else if (tuple is BuffTuple4d)
     {
         BuffTuple4d _tuple = (BuffTuple4d)tuple;
         this.x = _tuple.GetX();
         this.y = _tuple.GetY();
         this.z = _tuple.GetZ();
         this.w = _tuple.GetW();
     }
     else
     {
         Tuple4d _tuple = new Tuple4d(tuple);
         this.x = _tuple.GetX();
         this.y = _tuple.GetY();
         this.z = _tuple.GetZ();
         this.w = _tuple.GetW();
     }
 }
Пример #2
0
 public bool EpsilonEquals(Tuple4d other, double epsilon = EPSILON)
 {
     return(EpsilonEquals(other.GetX(),
                          other.GetY(),
                          other.GetZ(),
                          other.GetW(), epsilon));
 }
Пример #3
0
 /**
  * Copy constructor.
  *
  * @param tuple Tuple.
  */
 public BuffTuple4d(Tuple4d tuple)
 {
     this.x = tuple.GetX();
     this.y = tuple.GetY();
     this.z = tuple.GetZ();
     this.w = tuple.GetW();
 }
Пример #4
0
 public bool Equals(Tuple4d other)
 {
     return(Equals(other.GetX(),
                   other.GetY(),
                   other.GetZ(),
                   other.GetW()));
 }
Пример #5
0
 /**
  * Copy constructor.
  *
  * @param tuple Tuple.
  */
 public Vector4d(Tuple4d tuple)
 {
     this.x = tuple.GetX();
     this.y = tuple.GetY();
     this.z = tuple.GetZ();
     this.w = tuple.GetW();
 }