Examples of lowerRightCorner()


Examples of eas.math.geometry.Rectangle2D.lowerRightCorner()

        }
        if (bound.upperLeftCorner().y < this.boundingBox.upperLeftCorner().y) {
            this.boundingBox.setTop(bound.upperLeftCorner().y);
        }
        if (bound.lowerRightCorner().x > this.boundingBox.lowerRightCorner().x) {
            this.boundingBox.setRight(bound.lowerRightCorner().x);
        }
        if (bound.lowerRightCorner().y > this.boundingBox.lowerRightCorner().y) {
            this.boundingBox.setBottom(bound.lowerRightCorner().y);
        }
    }
View Full Code Here

Examples of eas.math.geometry.Rectangle2D.lowerRightCorner()

            this.boundingBox.setTop(bound.upperLeftCorner().y);
        }
        if (bound.lowerRightCorner().x > this.boundingBox.lowerRightCorner().x) {
            this.boundingBox.setRight(bound.lowerRightCorner().x);
        }
        if (bound.lowerRightCorner().y > this.boundingBox.lowerRightCorner().y) {
            this.boundingBox.setBottom(bound.lowerRightCorner().y);
        }
    }
   
    /**
 
View Full Code Here

Examples of eas.math.geometry.Rectangle2D.lowerRightCorner()

        }
        if (bound.lowerRightCorner().x > this.boundingBox.lowerRightCorner().x) {
            this.boundingBox.setRight(bound.lowerRightCorner().x);
        }
        if (bound.lowerRightCorner().y > this.boundingBox.lowerRightCorner().y) {
            this.boundingBox.setBottom(bound.lowerRightCorner().y);
        }
    }
   
    /**
     * Creates a new bounding box.
View Full Code Here

Examples of eas.math.geometry.Rectangle2D.lowerRightCorner()

        Rectangle2D currentBound = this.getCurrentViewBox();
        Vector2D middle = new Vector2D(this.getZoomBoxMiddle());
       
        zb = new Rectangle2D(
                new Vector2D(currentBound.upperLeftCorner()),
                new Vector2D(currentBound.lowerRightCorner()));
       
        zb.scale(Vector2D.NULL_VECTOR, new Vector2D(scale, scale));
       
        this.setZoomBox(zb);
        this.setZoomBoxMiddle(middle);
View Full Code Here

Examples of eas.math.geometry.Rectangle2D.lowerRightCorner()

        Rectangle2D clip = this.getClippingRectangle();
       
        g.clipRect(
                (int) clip.upperLeftCorner().x,
                (int) clip.upperLeftCorner().y,
                (int) clip.lowerRightCorner().x,
                (int) clip.lowerRightCorner().y);

        /*
         * Add visualization of non-visualized grid objects (i.e., all that
         * are no agents.
View Full Code Here

Examples of eas.math.geometry.Rectangle2D.lowerRightCorner()

       
        g.clipRect(
                (int) clip.upperLeftCorner().x,
                (int) clip.upperLeftCorner().y,
                (int) clip.lowerRightCorner().x,
                (int) clip.lowerRightCorner().y);

        /*
         * Add visualization of non-visualized grid objects (i.e., all that
         * are no agents.
         */
 
View Full Code Here

Examples of eas.math.geometry.Rectangle2D.lowerRightCorner()

       
        // If bounding box changed (==> refresh and reset tile coordinates).
        if (this.oldBoundingBox == null
                || Math.abs(this.oldBoundingBox.upperLeftCorner().x - newBoundingBox.upperLeftCorner().x) > epsilon
                || Math.abs(this.oldBoundingBox.upperLeftCorner().y - newBoundingBox.upperLeftCorner().y) > epsilon
                || Math.abs(this.oldBoundingBox.lowerRightCorner().x - newBoundingBox.lowerRightCorner().x) > epsilon
                || Math.abs(this.oldBoundingBox.lowerRightCorner().y - newBoundingBox.lowerRightCorner().y) > epsilon) {
            double x1 = newBoundingBox.upperLeftCorner().x - boundingBuffer.x,
                   x2 = newBoundingBox.lowerRightCorner().x + boundingBuffer.x,
                   y1 = newBoundingBox.upperLeftCorner().y - boundingBuffer.y,
                   y2 = newBoundingBox.lowerRightCorner().y + boundingBuffer.y;
View Full Code Here

Examples of eas.math.geometry.Rectangle2D.lowerRightCorner()

        // If bounding box changed (==> refresh and reset tile coordinates).
        if (this.oldBoundingBox == null
                || Math.abs(this.oldBoundingBox.upperLeftCorner().x - newBoundingBox.upperLeftCorner().x) > epsilon
                || Math.abs(this.oldBoundingBox.upperLeftCorner().y - newBoundingBox.upperLeftCorner().y) > epsilon
                || Math.abs(this.oldBoundingBox.lowerRightCorner().x - newBoundingBox.lowerRightCorner().x) > epsilon
                || Math.abs(this.oldBoundingBox.lowerRightCorner().y - newBoundingBox.lowerRightCorner().y) > epsilon) {
            double x1 = newBoundingBox.upperLeftCorner().x - boundingBuffer.x,
                   x2 = newBoundingBox.lowerRightCorner().x + boundingBuffer.x,
                   y1 = newBoundingBox.upperLeftCorner().y - boundingBuffer.y,
                   y2 = newBoundingBox.lowerRightCorner().y + boundingBuffer.y;
//            System.out.println("bound");
View Full Code Here

Examples of eas.math.geometry.Rectangle2D.lowerRightCorner()

                || Math.abs(this.oldBoundingBox.upperLeftCorner().x - newBoundingBox.upperLeftCorner().x) > epsilon
                || Math.abs(this.oldBoundingBox.upperLeftCorner().y - newBoundingBox.upperLeftCorner().y) > epsilon
                || Math.abs(this.oldBoundingBox.lowerRightCorner().x - newBoundingBox.lowerRightCorner().x) > epsilon
                || Math.abs(this.oldBoundingBox.lowerRightCorner().y - newBoundingBox.lowerRightCorner().y) > epsilon) {
            double x1 = newBoundingBox.upperLeftCorner().x - boundingBuffer.x,
                   x2 = newBoundingBox.lowerRightCorner().x + boundingBuffer.x,
                   y1 = newBoundingBox.upperLeftCorner().y - boundingBuffer.y,
                   y2 = newBoundingBox.lowerRightCorner().y + boundingBuffer.y;
//            System.out.println("bound");
            tiles = new LinkedList[tileNumHorizontally][tileNumVertically];
            this.localBoundingBox = new Rectangle2D(new Vector2D(x1, y1), new Vector2D(x2, y2));
View Full Code Here

Examples of eas.math.geometry.Rectangle2D.lowerRightCorner()

                || Math.abs(this.oldBoundingBox.lowerRightCorner().x - newBoundingBox.lowerRightCorner().x) > epsilon
                || Math.abs(this.oldBoundingBox.lowerRightCorner().y - newBoundingBox.lowerRightCorner().y) > epsilon) {
            double x1 = newBoundingBox.upperLeftCorner().x - boundingBuffer.x,
                   x2 = newBoundingBox.lowerRightCorner().x + boundingBuffer.x,
                   y1 = newBoundingBox.upperLeftCorner().y - boundingBuffer.y,
                   y2 = newBoundingBox.lowerRightCorner().y + boundingBuffer.y;
//            System.out.println("bound");
            tiles = new LinkedList[tileNumHorizontally][tileNumVertically];
            this.localBoundingBox = new Rectangle2D(new Vector2D(x1, y1), new Vector2D(x2, y2));
            this.oldBoundingBox = new Rectangle2D(newBoundingBox);
            this.tileCoordinates = new Rectangle2D[tileNumHorizontally][tileNumVertically];
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.