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