-a^4 - b^4 - c^4 + 2a^2b^2 + 2a^2c^2 + 2b^2c^2 > 4*F^2*c^2
i need to make my program go a bit faster.
c=sqr (x) <-- the square root that i don't like
p= ( a + b + c ) / 2
IF p * ( p - a ) * ( p - b ) * ( p - c ) > ( R * c / 2 ) ^2 then do something..
I want to compare x directly without finding the square root,
What is the above ?
its Heron's formula to find the height of the triangle.The only thing is that i only need to compare the height with the circle's radius R to find out if the circle obscures a vector.