Examples of intersectionSegments()


Examples of org.osm2world.core.math.SimplePolygonXZ.intersectionSegments()

           * with segments of the polygon */
         
          VectorXZ center = simplifiedOuter.getCentroid();
         
          Collection<LineSegmentXZ> intersections =
              simplifiedOuter.intersectionSegments(new LineSegmentXZ(
                center.add(slopeDirection.mult(-1000)), center));
         
          LineSegmentXZ outermostIntersection = null;
          double distanceOutermostIntersection = -1;
         
View Full Code Here

Examples of org.osm2world.core.math.SimplePolygonXZ.intersectionSegments()

         * quasi-infinite ridge line with segments of the polygon */
       
        VectorXZ p1 = outerPoly.getCentroid();
       
        Collection<LineSegmentXZ> intersections =
          simplifiedPolygon.intersectionSegments(new LineSegmentXZ(
              p1.add(ridgeDirection.mult(-1000)),
              p1.add(ridgeDirection.mult(1000))
          ));

        if (intersections.size() < 2) {
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.