I have an formula that generates a number from 20 to 180 (degree).
var a = 20 * Math.pow(str/dist, 1.5)); a = Math.max(180, w);
Using this formulae, i can generates some arcs and draw them just fine and depending on
dist (which is cursor distance from target), the arc is either very wide, or narrow (pow basicly makes it so the arc expands non-linear).
This approach works in one direction: Having a location, and a distant point, to create arc. I need a counter-equation that gives me the required DIST for a given angle.
str is 800, what is the value of
a would be 114 (or 68 or anything).
114 = Math.pow(900/dist, 1.5)) // ????
How can i solve this equation for dist ?