TreeSet<Collision> collisionList = new TreeSet<>();
List<LineSegment2D> brickLineSegments = getBrickWithCirleCollisionLineSegments(ball
.getRadius());
Side sides[] = { Side.BOTTOM, Side.RIGHT, Side.TOP, Side.LEFT, Side.CORNER,
Side.CORNER, Side.CORNER, Side.CORNER };
Ray2D ballMovementRay = ball.getMovementRay();
SpeedVector2D ballSpeed = ball.getSpeed();
Coordinates2D pointOfIntersection;
for (LineSegment2D brickLineSegment : brickLineSegments)
{
try