/** * Copy constructor. * * @param tuple Tuple. */ public BuffTuple4b(Tuple tuple) { if (tuple is Tuple4b) { Tuple4b _tuple = (Tuple4b)tuple; this.x = _tuple.GetX(); this.y = _tuple.GetY(); this.z = _tuple.GetZ(); this.w = _tuple.GetW(); } else if (tuple is BuffTuple4b) { BuffTuple4b _tuple = (BuffTuple4b)tuple; this.x = _tuple.GetX(); this.y = _tuple.GetY(); this.z = _tuple.GetZ(); this.w = _tuple.GetW(); } else { Tuple4b _tuple = new Tuple4b(tuple); this.x = _tuple.GetX(); this.y = _tuple.GetY(); this.z = _tuple.GetZ(); this.w = _tuple.GetW(); } }
public bool Equals(Tuple4b other) { return(Equals(other.GetX(), other.GetY(), other.GetZ(), other.GetW())); }
public bool EpsilonEquals(Tuple4b other, double epsilon = EPSILON) { return(EpsilonEquals(other.GetX(), other.GetY(), other.GetZ(), other.GetW(), epsilon)); }
/** * Copy constructor. * * @param tuple Tuple. */ public BuffTuple4b(Tuple4b tuple) { this.x = tuple.GetX(); this.y = tuple.GetY(); this.z = tuple.GetZ(); this.w = tuple.GetW(); }