solve 0=(a-b+c t cos(d))^2+(e-f+c t sin(d))^2-g t^2 for t