Examples of toPolygon()


Examples of bnGUI.venn.geometry.FRectangle.toPolygon()

                        FSegment seg = new FSegment(node.vennObject.getCenter(),rect.center());
                        Assert.assertNotNull( seg );
                        // Polygon intersection point
                        FPoint a, b;
                        a = ((VennPolygonObject)node.vennObject).getPolygon().intersect(seg);
                        b = rect.toPolygon().intersect(seg);
                       
                       
                       
                        if( (a != null) && (b != null) )
                        {
View Full Code Here

Examples of engine.geometry.Rectangle.toPolygon()

        Physics.move(((LevelScene) getScene()).getBlocks(), polygon, velocity);
    }

    public final boolean onGround() {
        Rectangle check = new Rectangle(polygon.getMinX(), polygon.getMaxY(), polygon.getMaxX() - polygon.getMinX(), 1);
        return Physics.intersects(((LevelScene) getScene()).getBlocks(), check.toPolygon());
    }
}
View Full Code Here

Examples of org.geotools.geometry.iso.topograph2D.EdgeRing.toPolygon()

    List resultPolyList = new ArrayList();
    // add Polygons for all shells
    for (Iterator it = shellList.iterator(); it.hasNext();) {
      EdgeRing er = (EdgeRing) it.next();

      SurfaceImpl poly = er.toPolygon();
      resultPolyList.add(poly);
    }
    return resultPolyList;
  }
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.