Originally Posted by Duugu
Ok. Let me see if I understand what you mean.
Lets assume 14, 6, 340 again.
The calculated value should be 357 .
You are saying I should use 14, 6, -20 instead.
The calculated value should be -3.
|
Suppose the values are 170, 185, 160? Then you turn it into 170, -175, 160, and have the same problem, because circles have no magic spots on them that makes problems go away, on account of being perfectly symmetrical.
/sigh
I gave you working code for a working algorithm, and mentioned an even better algorithm, do with it what you will.