Use angles. You can use the position of the dot relative to the centre to know which quadrant the dot is in. Then arcsin/cos can give you the angle. Then look to see how yellow angle compares to blue and green angles. Maybe dealing with the boundary between 0 degrees and 360 degrees might be awkward.
↧