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.