This is a polygon to polygon collision using sweep Axis Theorm in java