Quote:
Originally posted by kedaman
the optimal solution would be, when the first checkpoint is at -1000,1000/sqrt(3)
if x=distance to tangent from first checkpoint then you have the first checkpoint distance sqrt(r^2+x^2), the second x, and the third r by the angle between the normal to the tangent trough origo and the other tangent, which is derived trough the angle to the first checkpoint, pi/2-2*arcsin(x/sqrt(r^2+x^2)), the minimum of this function can be found by testing when its derivative is 0.
D[x+sqrt(r^2+x^2)+r*(pi/2-2*arcsin(x/sqrt(r^2+x^2)))]=
1+x/sqrt(r^2+x^2)-(2r(-(x^2/(r^2+x^2)^(3/2))+1/sqrt(r^2+x^2)))/sqrt(1-x^2/(r^2+x^2))=0
of which 2 are imaginary and one is negative and the positive is:
x=r/sqrt(3)
sorry I'm asking this over and over :(