Package eas.math.geometry

Examples of eas.math.geometry.Polygon2D.translate()


                ArrowMaster.EINFACHER_ABSCHLUSS,
                this.anfang,
                new Vector2D(this.anfFakt, this.anfFakt),
                new Vector2D(1, 1));
       
        p.translate(versch);
       
        p.scale(
                Vector2D.NULL_VECTOR,
                new Vector2D(1 / this.dicken.get(0), 1 / this.dicken.get(0)));
       
View Full Code Here


        b.scale(Vector2D.NULL_VECTOR, new Vector2D(globalScale, globalScale));
        Vector2D midTranslation = new Vector2D(screenWidth / 2, screenHeight / 2);
        midTranslation.sub(b.centerPoint());
        Polygon2D bound = visibleBox.toPol2D();
        bound.scale(Vector2D.NULL_VECTOR, new Vector2D(globalScale, globalScale));
        bound.translate(midTranslation);
        return bound;
    }
   
    private Boolean isDetailedView;
   
View Full Code Here

        Rectangle2D border = new Rectangle2D(
                new Vector2D(screenLeft, screenUp),
                new Vector2D(screenWidth - screenLeft, screenHeight - screenUp));
        Polygon2D bound = visibleBox.toPol2D();
        bound.scale(Vector2D.NULL_VECTOR, new Vector2D(globalScale, globalScale));
        bound.translate(midTranslation);
        g.setColor(Color.red);
        g.drawPolygon(border.toPol());
       
        if (this.pars.getParValueBoolean("PaintPinkBoundingBox?")) {
            g.setColor(Color.pink);
View Full Code Here

//                double scale = super.globalScale();
//                shape = new Polygon2D(shape);
//                shape.scale(new Vector2D(0, 0), new Vector2D(scale, scale));
//                shape.translate(realPosition);
                shape = (Polygon2D) shape.clone();
                shape.translate(this.gridObjectPositions.get(go));
               
                shape = this.getPolygonInVisualization(shape);
               
                Color objectColor = go.getAgentColor();
                Color oldColor = g.getColor();
View Full Code Here

        Polygon2D p = new Polygon2D();
        p.add(new Vector2D(0, 0));
        p.add(new Vector2D(0, this.getGridHeight()));
        p.add(new Vector2D(this.getGridWidth(), this.getGridHeight()));
        p.add(new Vector2D(this.getGridWidth(), 0));
        p.translate(new Vector2D(-0.5, -0.5));
        if (this.torus) {
            g.setColor(Color.lightGray);
        } else {
            g.setColor(Color.black);
        }
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.