Test if number is inside circular interval
问题 Let us suppose we have a number circle, that ranges from -180 to 180, looking something like this: 180/-180 *** *** *** 90 *** *** -90 *** *** *** 0 A section of the circle is always swept in a clockwise direction. How can you tell if a number is inside or outside of the interval swept? In the following sample I/O, the first two numbers represent the interval and the third number is the number being checked. Output is true if the point is (inclusively) inside the interval, false otherwise. 2