Examples of Polygon2D


Examples of eas.math.geometry.Polygon2D

    private Polygon2D shape;

    @Override
    public strictfp Polygon2D getAgentShape() {
        if (shape == null) {
            shape = new Polygon2D();
            shape.add(new Vector2D(-8, 0));
            shape.add(new Vector2D(8, 0));
            shape.add(new Vector2D(8, 2));
            shape.add(new Vector2D(-8, 2));
            shape.translateRootPointToMiddle();
View Full Code Here

Examples of eas.math.geometry.Polygon2D

    @Override
    public synchronized Polygon2D getAgentShape() {
        // Auto-generated polygon code by Arrow Master (60 points)
        if (pol == null) {
            pol = new Polygon2D();
            pol.add(new Vector2D(49.0, 208.0));
            pol.add(new Vector2D(68.0, 208.0));
            pol.add(new Vector2D(111.0, 189.0));
            pol.add(new Vector2D(152.0, 207.0));
            pol.add(new Vector2D(203.0, 207.0));
View Full Code Here

Examples of fmg.fmg8.graphVis.zeichenModi.Polygon2D

                        unmark2,
                        4);
            }
           
            if (this.ersteEcke != null && this.zweiteEcke != null) {
                Polygon2D quad = new Polygon2D(4);
               
                quad.add(new Vektor2D(this.ersteEcke));
                quad.add(new Vektor2D(this.ersteEcke.x, this.zweiteEcke.y));
                quad.add(new Vektor2D(this.zweiteEcke));
                quad.add(new Vektor2D(this.zweiteEcke.x, this.ersteEcke.y));
               
                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 org.apache.batik.ext.awt.geom.Polygon2D

                        _xpts[i] = readShort( is );
                        _ypts[i] = readShort( is );
                    }
                    _xpts[count] = _xpts[0];
                    _ypts[count] = _ypts[0];
                    Polygon2D pol = new Polygon2D(_xpts, _ypts, count);
                    paint(brushObject, penObject, pol);
                }
                break;

                case WMFConstants.META_POLYLINE:
View Full Code Here

Examples of org.apache.flex.forks.batik.ext.awt.geom.Polygon2D

                        _xpts[i] = readShort( is ) * scaleXY; 
                        _ypts[i] = readShort( is );
                    }
                    _xpts[count] = _xpts[0];
                    _ypts[count] = _ypts[0];
                    Polygon2D pol = new Polygon2D(_xpts, _ypts, count);
                    paint(brushObject, penObject, pol);
                }
                break;

                case WMFConstants.META_POLYLINE:
View Full Code Here

Examples of toxi.geom.Polygon2D

        return cw.unweightInto(out);
    }

    public Polygon2D toPolygon2D(int res) {
        float delta = 1f / (res - 1);
        Polygon2D poly = new Polygon2D();
        for (int i = 0; i < res; i++) {
            poly.add(pointOnCurve(i * delta).to2DXY());
        }
        return poly;
    }
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.