Package eas.math.geometry

Examples of eas.math.geometry.LineSegment2D.toPol2D()


        float epsilon = (float) 0.5;
       
        Rectangle2D r = new Rectangle2D(new Vector2D(0 - epsilon, 0 - epsilon), new Vector2D(width - epsilon, height - epsilon));
        LineSegment2D l = new LineSegment2D(new Vector2D(0 - epsilon, heightGO + epsilon), new Vector2D(this.getWidth() - epsilon, heightGO + epsilon));
        g.setColor(Color.red);
        g.drawPolygon(this.getPolygonInVisualization(l.toPol2D()).toPol());
        g.setStroke(new BasicStroke(5));
        g.setColor(Color.orange);
        g.drawPolygon(this.getPolygonInVisualization(r.toPol2D()).toPol());
       
        g.setColor(Color.black);
View Full Code Here


        }
       
        LineSegment2D l2 = new LineSegment2D(
                new Vector2D(minX - epsilon, this.getGridHeight() - epsilon),
                new Vector2D(maxX + epsilon, this.getGridHeight() - epsilon));
        g.drawPolygon(this.getPolygonInVisualization(l2.toPol2D()).toPol());
       
        // Show text.
        if (this.showText != null) {
            this.showCyclesText = 20 + this.showText.length() * 2;
            this.showNewText = this.showText;
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.