bepu / bepuphysics2

Pure C# 3D real time physics simulation library, now with a higher version number.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does this mean that when end_point0 =new EdgeEndpoints(){A=0,B=3}, end_point1 =new EdgeEndpoints(){A=1,B=2}, their hash values are equal

zyxia opened this issue · comments

commented

When the hash values are equal, doesn't it affect the index of the Dictionary?

Yes, but it won't break the dictionary- the hash value is allowed to collide with other entries. It's just not ideal.

This hash could be improved, I just didn't bother at the time.