Ah, thanks a bundle! I overlooked the possibility of x^2 + mx^2 = (1+m)x^2
No need to worry about me getting confused over that: I did a ton of these when I was 16. The problem is, that was 7 years ago :-p
I'm going to give (x-k)^2 + (y-h)^2 = r^2 a try after lunch.
Exactly. But how do I go about, getting it to this form?
r^2 = x^2 + y^2
r^2 = x^2 + (mx+b)^2
r^2 = x^2 + mx^2 + 2*bmx + b^2
I have no idea how I can get that to ax^2 + bx +c =0
Yes, but that would complecate the problem even more. I was thinking of transforming the line function instead to simplify it, but if anyone knows the solution, that would be better. It would make a more efficient function.
Hi all,
I have a bit of an algebraic problem, and my lack of attention during math is starting to show. I was experimenting with hit detection based on lines for a simple shooting game, and the enemies bieng circulair.
I already have a function to check the distance from the line to the...