Results 1 to 5 of 5

Thread: [RESOLVED] Lines and Arcs

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2006
    Location
    London, UK
    Posts
    817

    Resolved [RESOLVED] Lines and Arcs

    Hi all,

    Can someone help me here?

    In a sentence, I need a bit of code (or an explanation) that will tell me whether or not a line (which passes through 0,0) crosses an arc.

    It’s got me beat.

  2. #2
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863

    Re: Lines and Arcs

    Your line has to be defined by y=mx (no +b , sonce it passes thru 0,0), but how does your arc look like?
    You're welcome to rate this post!
    If your problem is solved, please use the Mark thread as resolved button


    Wait, I'm too old to hurry!

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2006
    Location
    London, UK
    Posts
    817

    Re: Lines and Arcs

    Say for example
    (x-10)²+(y-10)²=10
    for x & y values >= 10

  4. #4
    Addicted Member Glaysher's Avatar
    Join Date
    Jul 2006
    Posts
    132

    Re: Lines and Arcs

    Don't know about coding but mathematically

    y = mx
    (x - 10)² + (y - 10)² = 10 for x & y values >= 10

    (x - 10)² + (mx - 10)² = 10
    x2 - 20x + 100 + m2x2 - 20mx + 100 = 10
    (m2 + 1)x2 -20(m + 1)x + 190 = 0

    Solve this quadratic for x, only accepting solutions > 10
    Substitute x value/s into y = mx only accepting solutions > 10
    Vaiyo A-O
    A Home Va Ya Ray
    Vaiyo A-Rah
    Jerhume Brunnen G
    Vaiyo A-Rah
    Jerhume Brunnen G

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2006
    Location
    London, UK
    Posts
    817

    Re: [RESOLVED] Lines and Arcs

    That brings back a bit of memory. Thanks Glaysher.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width