omgwtfgames / slimmath

API independent vector math library for the .NET platform
13 stars 3 forks source link

In Vector3 Equals methods are missing a comparison for the z field #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is the current code

return (value1.X == value2.X && value1.Y == value2.Y); 

I think it should be 

return (value1.X == value2.X && value1.Y == value2.Y && value1.Z == 
value2.Z); 

Original issue reported on code.google.com by FrrrS...@gmail.com on 11 Feb 2010 at 8:37

GoogleCodeExporter commented 9 years ago
Ah yes, good catch. I guess my unit test wasn't the greatest for detecting that 
sort
of thing.

Original comment by Mike.Popoloski on 12 Feb 2010 at 1:07

GoogleCodeExporter commented 9 years ago
Fixed in r12.

Original comment by Mike.Popoloski on 12 Feb 2010 at 4:40