Point belongs to an arc?

Discussion in 'AutoCAD' started by mgrigoriev, Feb 12, 2004.

  1. mgrigoriev

    mgrigoriev Guest

    How can I find out whether a point belongs to a line or not. Say, if I want to find out whether a point lies on a line, I compare the length of the line and the sum of the distances between the point and the start and end points of the line. Can't think of any way to find that out for an arc.
     
    mgrigoriev, Feb 12, 2004
    #1
  2. mgrigoriev

    mgrigoriev Guest

    Sorry, I want to know whether a point belongs to an ARC or not
     
    mgrigoriev, Feb 12, 2004
    #2
  3. mgrigoriev

    Jeff Mishler Guest

    if distance from point to radius point = radius AND startangle <
    pointangle < endangle (for counterclockwise arcs) then point lies on
    arc.
    test for CC or CCW arcs will be required.

    HTH,
    Jeff

    want to find out whether a point lies on a line, I compare the length of
    the line and the sum of the distances between the point and the start
    and end points of the line. Can't think of any way to find that out for
    an arc.
     
    Jeff Mishler, Feb 12, 2004
    #3
  4. mgrigoriev

    mgrigoriev Guest

    Thank you. These two conditions sound right. I just hope they are enough. I'll test it with different arcs.
     
    mgrigoriev, Feb 16, 2004
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.