danbuis / BBDGamesLib

Code base to rapidly make Java based programs using OpenGL to render to the screen
0 stars 0 forks source link

Add more thorough testing to polygon.equals() #102

Closed danbuis closed 3 years ago

danbuis commented 3 years ago

Add testing to check all 4 rotations of a square, in both directions.

We missed a few instances where the original function had to try multiple times. Basically i++ was occuring 2x, but it revealed that the current testing suite is insufficient

danbuis commented 3 years ago

The fix for this is happening in the offset branch, but the better testing is in the 0.3 branch. They should be joined up by the 0.4 when convex offsets are wrapped up