ok, so i\'m doing an assignment for a Java class and one part of the assignment is to find out if a point is within the dimensions of a rectangle. so I created this code:
Usually when dealing with computer graphics, the top left point is (0,0) and the bottom right corner is (width, height).
This means that you should reverse your conditions