/// <summary> /// Returns the hashcode of the BodyPair. /// The hashcode is the same if an BodyPair contains the same bodies. /// </summary> /// <returns></returns> public override int GetHashCode() { return(Entity1.GetHashCode() + Entity2.GetHashCode()); }
/// <summary> /// Returns the hashcode of the BodyPair. /// The hashcode is the same if an BodyPair contains the same bodies. /// </summary> /// <returns></returns> public override int GetHashCode() { return(body1.GetHashCode() + body2.GetHashCode()); }