Ok, I have worked on making Quadratic Arcs for wc3 about a thousand times, constantly going back over my code and my math
I have figured out how to make an arc work when given
1. The arcs Max Height
2. The arcs Max Distance (or distance away form zero where the arc finishes, or the second root's x coordinate)
I have no problem with this, my problem starts when I want to define an arc when given
1. The starting height
2. The ending height
3. The arcs Max Height
4. The distance from the start of the arc, to the the distance when the arc reaches its ending height
What I have been trying to do, is find some equations to use to reconstruct where the roots are of the arc if it was to be extended, while at the same time not knowing the equation of the arc
After finding the appropriate roots, I can use that equation for the arc in the system (and simply set the start height and the end height in the system)
I was curious to see if anybody else had the time or the balls to tackle a mathematical formula such as this
I have gotten some varied results, but after testing the formulas out on real equations, they don't work as well as I wish they would >< (I don't have a scientific calculator, and my computer doesn't have the calculator program [what the fuck ] so it takes me alot of time to check out whether or not it was because of a square root function being + or -)
If I develop a functional formula to find this, I won't post it up here, as it will be in my new spellpack I am working one, which will feature a number of spells using a quadratic arc function that has a hell of alot of editing capacity
I have figured out how to make an arc work when given
1. The arcs Max Height
2. The arcs Max Distance (or distance away form zero where the arc finishes, or the second root's x coordinate)
I have no problem with this, my problem starts when I want to define an arc when given
1. The starting height
2. The ending height
3. The arcs Max Height
4. The distance from the start of the arc, to the the distance when the arc reaches its ending height
What I have been trying to do, is find some equations to use to reconstruct where the roots are of the arc if it was to be extended, while at the same time not knowing the equation of the arc
After finding the appropriate roots, I can use that equation for the arc in the system (and simply set the start height and the end height in the system)
I was curious to see if anybody else had the time or the balls to tackle a mathematical formula such as this
I have gotten some varied results, but after testing the formulas out on real equations, they don't work as well as I wish they would >< (I don't have a scientific calculator, and my computer doesn't have the calculator program [what the fuck ] so it takes me alot of time to check out whether or not it was because of a square root function being + or -)
If I develop a functional formula to find this, I won't post it up here, as it will be in my new spellpack I am working one, which will feature a number of spells using a quadratic arc function that has a hell of alot of editing capacity