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.
i.e.
assuming str
is 800, what is the value of dist
so a
would be 114 (or 68 or anything).
114 = Math.pow(900/dist, 1.5)) // ????
How can i solve this equation for dist ?
thanks,
a = (x/y)^1.5 solve for y
gives youy = x/a^(2/3)
. Using similar software is also less prone to errors than doing it manually on paper. \$\endgroup\$