Trapped Points (Inside & Out)
In the applet below, one purple point is trapped inside the circle and another purple point is trapped outside the circle.
You can alter the locations of the purple points, the circle, and points A and B if you wish.
Without downloading this applet and examining its contents, construct an applet that is a replica of this applet. (Colors irrelevant).