javacoordinatesbounds

How to determine coordinate bounds of the highlighted area


I have the area like in the below. I am generating random coordinates between this coordinate map. When the randomly generated number comes (0.3,-0.3) I did easily program that it recognizes this coordinate belongs to Area F but how can I determine the bounds of A / B / D / E to recognize if the randomly generated coordinate belongs to these areas? What are the bounds of Area E for writing an if statement to recognize if randomly generated coordinate inside of it?

highlighted


Solution

  • AREA D & E

    AREA A & B