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