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