Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jun 2012
    Thanked 0 Times in 0 Posts

    Circle Within a Canvas with multiple segments cone shaped. Find I am in which segment

    I have a circle drawn within a canvas HTML5. I have multiple segments in the circle. I have start and end angle of each segment also I have got the radius.
    I know that we can get angle using the mouse coordinates and then depending on which angle range it falls in we would know that the point lies in which segment. I have only got this as theory but do not know how to do it.

    Please help.

  2. #2
    Master Coder sunfighter's Avatar
    Join Date
    Jan 2011
    Thanked 1,007 Times in 1,004 Posts
    This is a repost of another thread http://www.codingforums.com/showthread.php?t=316069 Why????

    There are a number of solution on your old post, I just expanded on mine there. This post is not needed.
    Evolution - The non-random survival of random variants.
    Physics is actually atoms trying to understand themselves.


Posting Permissions

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