public Rectangle intersect(Rectangle a)
{
if (((this.getBottomLeftPosition().getX() <= a.getBottomLeftPosition().getX()) && (a.getUpperRightPosition().getX() <=...
Type: Posts; User: javapenguin
public Rectangle intersect(Rectangle a)
{
if (((this.getBottomLeftPosition().getX() <= a.getBottomLeftPosition().getX()) && (a.getUpperRightPosition().getX() <=...
]
Compute what, the alteration to the Java Rectangle class source code, or a way to write the intersect and union methods without having to use the source code for the Java Rectangle class at all?
How would it have to be altered for a Rectangle with the parameters (x, y, width, height) but (x,y) was the bottom-left, not the upper-right, corner?
I'm trying to make a method called intersect that makes a Rectangle, my Rectangle class, which has a lower left corner point, a width, and a height, Rectangle(double x, double y, double width,...