(w-sw)/(h-sh) = r, sh = h + sw/r -w/r, differentiate d(sh)/d(sw) = -1/r, diff is 0 at minimum sh. Which isn't any help! Might I suggest an iterative, trial and improvement binomial approach instead? You give a concise mathematical explanation but I struggle to see the application of such an algorithm.(w-sw)/(h-sh)= r,sh = h + sw / r - w / r,微分d(sh)/ d(sw)= -1 / r,在最小的sh处diff为0。这并没有什么帮助!我建议采用迭代、试验和改进的二项式方法。你给出了一个简明的数学解释,但我很难看出这种算法的应用。 - John