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