/// <summary> /// Checks whether the given intersection pair contains the same pair of objects. /// </summary> /// <param name="obj">the object to be compared-</param> /// <returns>true if they both contain the same physics objects, false otherwise</returns> public override bool Equals(object obj) { if (obj is Manifold) { Manifold other = (Manifold)obj; return((bodyA.Equals(other.bodyA) && bodyB.Equals(other.bodyB)) || (bodyA.Equals(other.bodyB) && bodyB.Equals(other.bodyB))); } return(false); }