How to check if a point (X,Y) is within certain areas of a 2d vector

Hi, I’m doing it, first I check the quadrant and then the sector. In the example images I do it with the upper left and upper right quadrant (I also have it for the lower ones) only that the resulting line of the sector is not perfectly diagonal.

the result I get is the following

338411-myapproach2.png