You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnx >= minX && y >= minX && x < maxX && y < maxY;
But it should be:
returnx >= minX && y >= minY && x < maxX && y < maxY;
The y >= minX part is incorrect, as it is comparing separate axes together, which was probably not intended. This leads to incorrect results being produced.
The following test case should reproduce the issue:
The
Rectangle.contains
methods appear to be using some subtly incorrect logic. Currently it is:JOML/src/org/joml/Rectangled.java
Line 337 in 3d21201
JOML/src/org/joml/Rectanglef.java
Line 330 in 3d21201
JOML/src/org/joml/Rectanglei.java
Line 297 in 3d21201
But it should be:
The
y >= minX
part is incorrect, as it is comparing separate axes together, which was probably not intended. This leads to incorrect results being produced.The following test case should reproduce the issue:
The text was updated successfully, but these errors were encountered: