I have two balls with d1 and d2 as their direction, and I have the speed s1 and s2, d1 and d2 are in radians showing the angle made with positive direction of x-axis and in anticlockwise direction i.e 0<=d1 and d2<2*pi
their positions are (x1,y1) and (x2,y2) when they collided
after...