public class SpeedTest {
@Test
public void testSpeedNewRectCollisions() {
NextShape rect = ShapeFactory.createRectangle(new Vector(10, 100), 20,
20);
// NextShape rect2 = ShapeFactory.createRectangle(new Vector(10, 90),
// 20,20);
NextShape rect2 = ShapeFactory.createCircle(new Vector(10, 90), 10);
Date start = new Date();
long startTime = start.getTime();
for (int i = 0; i < 1000000; i++) {
rect.getCollision(rect2, Vector.ZERO, true, true);
rect = rect.moveCenter(new Vector(0, 0.000001f));