[FIXED] Vector.equals is always false

Started by uwap, June 20, 2013, 16:49:14

Previous topic - Next topic

uwap

I noticed that the Vectors in org.lwjgl.util.vectors "never equal".

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.

kappa

Added equals method to Vector2f, Vector3f and Vector4f.

Thanks.