Examples of toPol()


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

        g.setColor(Color.red);
        g.drawPolygon(border.toPol());
       
        if (this.pars.getParValueBoolean("PaintPinkBoundingBox?")) {
            g.setColor(Color.pink);
            g.drawPolygon(bound.toPol());
            g.drawString(
                    visibleBox.upperLeftCorner().toString(),
                    (int) bound.getBoundingBox().upperLeftCorner().x,
                    (int) bound.getBoundingBox().upperLeftCorner().y - 10);
            String rechtsunten = visibleBox.lowerRightCorner().toString();
View Full Code Here

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

                        new Vector2D(1, 1));
               
                arrow = this.getPolygonInVisualization(arrow);
               
                g.setColor(color);
                g.fillPolygon(arrow.toPol());
                g.setColor(Color.black);
                g.drawPolygon(arrow.toPol());
                g.drawString(StaticMethods.round(currentNeuron.getInput(), 2)
                        + "", (float) startPoint.x, (float) startPoint.y - 5);
View Full Code Here

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

                arrow = this.getPolygonInVisualization(arrow);
               
                g.setColor(color);
                g.fillPolygon(arrow.toPol());
                g.setColor(Color.black);
                g.drawPolygon(arrow.toPol());
                g.drawString(StaticMethods.round(currentNeuron.getInput(), 2)
                        + "", (float) startPoint.x, (float) startPoint.y - 5);

                Vector2D textPos = new Vector2D(startPoint.x, startPoint.y - 0.2);
                textPos = this.getPointInVisualization(textPos);
View Full Code Here

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

                        new Vector2D(1, 1));
               
                arrow = this.getPolygonInVisualization(arrow);

                g.setColor(color);
                g.fillPolygon(arrow.toPol());
                g.setColor(Color.black);
                g.drawPolygon(arrow.toPol());
                g.drawString(StaticMethods.round(currentNeuron.getOutput(), 2)
                        + "", (float) startPoint.x, (float) startPoint.y - 8);
View Full Code Here

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

                arrow = this.getPolygonInVisualization(arrow);

                g.setColor(color);
                g.fillPolygon(arrow.toPol());
                g.setColor(Color.black);
                g.drawPolygon(arrow.toPol());
                g.drawString(StaticMethods.round(currentNeuron.getOutput(), 2)
                        + "", (float) startPoint.x, (float) startPoint.y - 8);

                color = Color.orange;
               
View Full Code Here

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

                } else {
                    g.setColor(Color.red);
                }
               
                if (weightPosSelf == null) {
                    g.fillPolygon(pol.toPol());
                    g.drawPolygon(pol.toPol());
                }
               
                // Weight text.
                Font font;
View Full Code Here

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

                    g.setColor(Color.red);
                }
               
                if (weightPosSelf == null) {
                    g.fillPolygon(pol.toPol());
                    g.drawPolygon(pol.toPol());
                }
               
                // Weight text.
                Font font;
                if (Math.abs(weightFactor) > 0.5) {
View Full Code Here

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

                    p.add(v1);
                    p.add(new Vector2D(v1.x, v1.y + this.heightProfileGridHeight));
                    p.add(new Vector2D(v1.x + this.heightProfileGridWidth, v1.y + this.heightProfileGridHeight));
                    p.add(new Vector2D(v1.x + this.heightProfileGridWidth, v1.y));
                    p = this.getPolygonInVisualization(p);
                    Polygon pol = p.toPol();
                   
                    g.drawPolygon(pol);
                    g.fillPolygon(pol);
                    g.drawLine(pol.xpoints[0], pol.ypoints[0], pol.xpoints[2], pol.ypoints[2]);
                }
View Full Code Here

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

                Color objectColor = go.getAgentColor();
                Color oldColor = g.getColor();
               
                if (objectColor != null) {
                    g.setColor(objectColor);
                    g.fillPolygon(shape.toPol());
                }
               
                g.setColor(Color.black);
                g.drawPolygon(shape.toPol());
                g.setColor(oldColor);
View Full Code Here

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

                    g.setColor(objectColor);
                    g.fillPolygon(shape.toPol());
                }
               
                g.setColor(Color.black);
                g.drawPolygon(shape.toPol());
                g.setColor(oldColor);
            }
        }

        Polygon2D p = new Polygon2D();
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.