コード例 #1
0
 /// <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());
 }
コード例 #2
0
 /// <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());
 }