Package com.sromku.polygon

Examples of com.sromku.polygon.Polygon


  /**
   * Create simple polygon and check that the point is inside
   */
  public static void testSimplePolygon()
  {
    Polygon polygon = Polygon.Builder()
        .addVertex(new Point(1, 3))
        .addVertex(new Point(2, 8))
        .addVertex(new Point(5, 4))
        .addVertex(new Point(5, 9))
        .addVertex(new Point(7, 5))
View Full Code Here


  /**
   * Create polygon two holes and check that the point is inside
   */
  public static void testPolygonWithHoles()
  {
    Polygon polygon = Polygon.Builder()
        .addVertex(new Point(1, 2)) // polygon
        .addVertex(new Point(1, 6))
        .addVertex(new Point(8, 7))
        .addVertex(new Point(8, 1))
        .close()
View Full Code Here

TOP

Related Classes of com.sromku.polygon.Polygon

Copyright © 2018 www.massapicom. 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.