Esempio n. 1
0
 /**
  * Copy constructor.
  *
  * @param tuple Tuple.
  */
 public Vector3f(Tuple tuple)
 {
     if (tuple is Tuple3f)
     {
         Tuple3f _tuple = (Tuple3f)tuple;
         this.x = _tuple.GetX();
         this.y = _tuple.GetY();
         this.z = _tuple.GetZ();
     }
     else if (tuple is BuffTuple3f)
     {
         BuffTuple3f _tuple = (BuffTuple3f)tuple;
         this.x = _tuple.GetX();
         this.y = _tuple.GetY();
         this.z = _tuple.GetZ();
     }
     else
     {
         Tuple3f _tuple = new Tuple3f(tuple);
         this.x = _tuple.GetX();
         this.y = _tuple.GetY();
         this.z = _tuple.GetZ();
     }
 }
Esempio n. 2
0
 /**
  * Copy constructor.
  *
  * @param tuple Tuple.
  */
 public Vector3f(Tuple3f tuple)
 {
     this.x = tuple.GetX();
     this.y = tuple.GetY();
     this.z = tuple.GetZ();
 }
 public bool Equals(Tuple3f other)
 {
     return(Equals(other.GetX(),
                   other.GetY(),
                   other.GetZ()));
 }
 public bool EpsilonEquals(Tuple3f other, double epsilon = EPSILON)
 {
     return(EpsilonEquals(other.GetX(),
                          other.GetY(),
                          other.GetZ(), epsilon));
 }
 /**
  * Copy constructor.
  *
  * @param tuple Tuple.
  */
 public BuffTuple3f(Tuple3f tuple)
 {
     this.x = tuple.GetX();
     this.y = tuple.GetY();
     this.z = tuple.GetZ();
 }