Package com.vividsolutions.jts.algorithm

Examples of com.vividsolutions.jts.algorithm.NonRobustCGAlgorithms


    assertEquals(Location.BOUNDARY, pointLocator.locate(new Coordinate(410, 50), polygon));
    assertEquals(Location.INTERIOR, pointLocator.locate(new Coordinate(190, 150), polygon));
  }

  public void test1() throws Exception {
    NonRobustCGAlgorithms algorithms = new NonRobustCGAlgorithms();
    assertTrue(algorithms.isOnLine(new Coordinate(10,10),
          new Coordinate[] {new Coordinate(0,10), new Coordinate(20,10)}));
    assertTrue(! algorithms.isOnLine(new Coordinate(30,10),
          new Coordinate[] {new Coordinate(0,10), new Coordinate(20,10)}));
  }
View Full Code Here

TOP

Related Classes of com.vividsolutions.jts.algorithm.NonRobustCGAlgorithms

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.