/// <summary> /// Returns a value indicating whether this instance is equal to /// the specified object. /// </summary> /// <param name="obj">An object to compare to this instance.</param> /// <returns><see langword="true"/> if <paramref name="obj"/> is a <see cref="Box2D"/> and has the same values as this instance; otherwise, <see langword="false"/>.</returns> public override bool Equals(object obj) { if (obj is BBox3D) { BBox3D v = (BBox3D)obj; return((PtMin.Equals(v.PtMin)) && (PtMax.Equals(v.PtMax))); } return(false); }
/// <summary> /// Returns the hashcode for this instance. /// </summary> /// <returns>A 32-bit signed integer hash code.</returns> public override int GetHashCode() { return(PtMin.GetHashCode() ^ PtMax.GetHashCode()); }