I have this code snippet: This code snippet defines a boundary coordinates on the screen wrt to the center(of the screen).
if( x < x_center ) x_border = x_center - x_shift; else x_border = x_center + x_shift; if( y < y_center ) y_border = y_center - y_shift; else y_border = y_center + y_shift; //x_shift and y_shift are constants. What is the best possible way to determine in which quadrant( wrt to the center) the point (x,y) lies ? Siddharth Srivastava -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.