Hello Guest

[FIXED] Vector.equals is always false

  • 1 Replies
  • 6947 Views
[FIXED] Vector.equals is always false
« on: June 20, 2013, 16:49:14 »
I noticed that the Vectors in org.lwjgl.util.vectors "never equal".

Code: [Select]
assertEqual(new Vector3f(), new Vector3f());
The test will fail. The Vector2f and Vector3f classes seem to not override the equals function.
I'm not sure whether to count this as a bug or a feature request, even though I think this got to be fixed/implemented.
« Last Edit: July 09, 2013, 16:20:09 by kappa »

*

Offline kappa

  • *****
  • 1319
Re: [BUG] Vector.equals is always false
« Reply #1 on: July 09, 2013, 16:19:50 »
Added equals method to Vector2f, Vector3f and Vector4f.

Thanks.