Hello and welcome to our community! Is this your first visit?
Register
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
    Posts
    43
    Thanks
    15
    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
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,585
    Thanks
    23
    Thanked 645 Times in 644 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.

    "If you leave hydrogen alone, for long enough, it begins to think about itself."


  •  

    Posting Permissions

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