/** * 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(); } }
public bool Equals(Tuple3b other) { return(Equals(other.GetX(), other.GetY(), other.GetZ())); }
public bool EpsilonEquals(Tuple3b other, double epsilon = EPSILON) { return(EpsilonEquals(other.GetX(), other.GetY(), other.GetZ(), epsilon)); }
/** * Copy constructor. * * @param tuple Tuple. */ public BuffTuple3b(Tuple3b tuple) { this.x = tuple.GetX(); this.y = tuple.GetY(); this.z = tuple.GetZ(); }