CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2011
    Posts
    1

    Interior angle of polygon

    I have a closed polygon made up of n points. Could be convex, concave or self intersecting.

    Given 3 consecutive points (ie two adjacent lines) I want to draw an arc between the two lines such that the arc is on the interior of the polygon.

    Just like an angle indicator in geometry.

    Starting from line 1, I can either draw the arc cw or ccw to get to line 2. One way will draw the interior angle, the other way will draw the exterior angle, but how do I tell which?

    Hope the decsription is clear, I am going round in circles trying to find a reasonable way to do this. Maybe there is a simple solution I just can't see.

  2. #2
    Join Date
    Feb 2011
    Location
    United States
    Posts
    1,016

    Re: Interior angle of polygon

    This post appears to be relevant to your question: http://stackoverflow.com/questions/5...igger-than-180
    Best Regards,

    BioPhysEngr
    http://blog.biophysengr.net
    --
    All advice is offered in good faith only. You are ultimately responsible for effects of your programs and the integrity of the machines they run on.

Tags for this Thread

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

Featured