Search:

Type: Posts; User: javapenguin

Search: Search took 0.18 seconds.

  1. Re: How to form a rectangle from the union of two Rectangles.

    public Rectangle intersect(Rectangle a)
    {
    if (((this.getBottomLeftPosition().getX() <= a.getBottomLeftPosition().getX()) && (a.getUpperRightPosition().getX() <=...
  2. Re: How to form a rectangle from the union of two Rectangles.

    ]

    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?
  3. Re: How to form a rectangle from the union of two Rectangles.

    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?
  4. How to form a rectangle from the union of two Rectangles.

    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,...
Results 1 to 4 of 4