public bool EpsilonEquals(BuffTuple2i other, double epsilon = EPSILON) { if (other == this) { return(true); } return(EpsilonEquals(other.GetX(), other.GetY(), epsilon)); }
public bool Equals(BuffTuple2i other) { if (other == this) { return(true); } return(Equals(other.GetX(), other.GetY())); }
/** * Copy constructor. * * @param tuple Tuple. */ public BuffTuple2i(Tuple tuple) { if (tuple is Tuple2i) { Tuple2i _tuple = (Tuple2i)tuple; this.x = _tuple.GetX(); this.y = _tuple.GetY(); } else if (tuple is BuffTuple2i) { BuffTuple2i _tuple = (BuffTuple2i)tuple; this.x = _tuple.GetX(); this.y = _tuple.GetY(); } else { Tuple2i _tuple = new Tuple2i(tuple); this.x = _tuple.GetX(); this.y = _tuple.GetY(); } }
public BuffTuple2i Clone() { BuffTuple2i copy = (BuffTuple2i)base.Clone(); return(copy); }
/** * Copy constructor. * * @param tuple Tuple. */ public BuffTuple2i(BuffTuple2i tuple) { this.x = tuple.GetX(); this.y = tuple.GetY(); }