Examples of toPol()


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

                for (int j = 0; j < this.tileNumVertically; j++) {
                    Rectangle2D r = this.getTileRectangle(new Vector2D(i, j));
                    Polygon2D polInVis = super.getPolygonInVisualization(r.toPol2D());
                    Vector2D pos = polInVis.centerPoint();
                    g.setColor(Color.orange);
                    g.drawPolygon(polInVis.toPol());
//                    g.drawString(i + " / " + j, (float) pos.x, (float) pos.y);
                    g.drawString("" + this.getAgentsTouchingTile(new Vector2D(i, j)).size(), (float) pos.x, (float) pos.y);
                }
            }
        }
View Full Code Here

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

                Vector2D agPos = ((AbstractEnvironment2D) this.currentEnv).getPointInVisualization(((AbstractEnvironment2D) this.currentEnv).getAgentPosition(this.markedAgentId));
                agPos.sub(new Vector2D(width / 2, height / 2));
                g.drawOval((int) agPos.x, (int) agPos.y, (int) (width), (int) (height));
               
                Polygon2D pol2D = ((AbstractEnvironment2D) this.currentEnv).getAgentShapeInVisualization(this.markedAgentId);
                Polygon pol = pol2D.toPol();
                g.setColor(Color.red);
                g.drawPolygon(pol);
            } catch (Exception e) {
                try {
                    g.drawOval(
View Full Code Here

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

                    dicken,
                    ArrowMaster.EINFACHER_ABSCHLUSS,
                    ArrowMaster.EINFACHER_ABSCHLUSS,
                    new Vector2D(1, 1),
                    new Vector2D(1, 1));
            zeichenObjekte.add(pol.toPol());
           
//            for (Pol2DMitAusgMerkm pa : gestrichelt) {
//                if (pa != null) {
//                    zeichenObjekte.add(pa.getAusg());
//                    zeichenObjekte.add(pa.getPol().toPol());
View Full Code Here

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

                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);
            g.drawPolygon(bound.toPol());
            g.drawString(
View Full Code Here

Examples of fmg.fmg8.graphVis.zeichenModi.Polygon2D.toPol()

        zwisch.sub(ySub);
        quad.add(zwisch);
       
        AusgMerkm zwAusg = new AusgMerkm(Color.black, Color.black, true, true);
        liste.add(zwAusg);
        liste.add(quad.toPol(1, Vektor2D.NULL_VEKTOR));
       
        Kreis2D k1 = new Kreis2D(
                linksOben.x,
                linksOben.y,
                radius);
View Full Code Here

Examples of fmg.fmg8.graphVis.zeichenModi.Polygon2D.toPol()

                liste.add(new AusgMerkm(
                        Color.lightGray,
                        Color.black,
                        true,
                        false));
                liste.add(quad.toPol(this.skalierung, this.verschiebung));
            }
           
            LinkedList<AbstractMsg> msgsError
                = this.pars.getMsgs(
                    (new MsgError(null, 0, null)).getType(),
View Full Code Here

Examples of fmg.fmg8.graphVis.zeichenModi.Polygon2D.toPol()

                liste.add(new AusgMerkm(
                        Color.lightGray,
                        Color.black,
                        true,
                        false));
                liste.add(quad.toPol(this.skalierung, this.verschiebung));
            }
           
            LinkedList<AbstractMsg> msgsError
                = this.pars.getMsgs(
                    (new MsgError(null, 0, null)).getType(),
View Full Code Here

Examples of fmg.fmg8.graphVis.zeichenModi.Polygon2D.toPol()

        zwisch.sub(ySub);
        quad.add(zwisch);
       
        AusgMerkm zwAusg = new AusgMerkm(Color.black, Color.black, true, true);
        liste.add(zwAusg);
        liste.add(quad.toPol(1, Vektor2D.NULL_VEKTOR));
       
        Kreis2D k1 = new Kreis2D(
                linksOben.x,
                linksOben.y,
                radius);
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.