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