Re: mouse within oval filled area: A solution using geometry

2011-11-14 Thread James Hurley
Hugh, You'll love the atan2 function. It takes care of all nasty bits at 90 and 270 degrees as well as dealing with the quadrants issues. Use atan2(y,x) for angles measure clockwise from the x-axis Use atan2(-y,x) for angles measure counterclockwise from the x-axis. Jim Hurley --| Get the p

Re: mouse within oval filled area: A solution using geometry

2011-11-13 Thread FlexibleLearning
For those who do not have LC5 or AE (ideas already suggested), here is a solution to detect whether a point is within the filled area of an oval graphic using polar geometry. It is offered as a starting point for a more compact solution. on mouseUp --| Syntax: isWithinSegment(long ID,point) pu