Recent content by TOdorus

  1. T

    Intersection points of a line on a circle

    r^2 = (x-k)^2 + (y-h)^2 r^2 = x^2 -2kx + k^2 + y^2 -2hy + h^2 r^2 = x^2 -2kx + k^2 + (mx+b)^2 -2h(mx+b) + h^2 r^2 = x^2 -2kx + k^2 + m^2x^2 + 2bmx + b^2 - 2hmx - 2hb + h^2 0 = (1-2k+m^2)x^2 + (2bm-2hm)x + (k+b^2-2hb+h^2-r^2) D = b^2 - 4ac D = (2bm - 2hm)^2 -...
  2. T

    Intersection points of a line on a circle

    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.
  3. T

    Intersection points of a line on a circle

    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
  4. T

    Intersection points of a line on a circle

    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.
  5. T

    Intersection points of a line on a circle

    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...
Back
Top