Package org.osm2world.core.math

Examples of org.osm2world.core.math.AxisAlignedBoundingBoxXZ


    stopWatch.start();
   
    sites = new ArrayList<SiteWithPolynomial>(siteVectors.size());
   
    siteGrid = new IntersectionGrid<SiteWithPolynomial>(
        new AxisAlignedBoundingBoxXZ(siteVectors).pad(CELL_SIZE/2),
        CELL_SIZE, CELL_SIZE);
   
    for (VectorXYZ siteVector : siteVectors) {
      SiteWithPolynomial s = new SiteWithPolynomial(siteVector);
      sites.add(s);
View Full Code Here


       
        Collection<VectorXZ> pointsXZ = new ArrayList<VectorXZ>();
        for (LatLonEle l : args.getOviewBoundingBox()) {
          pointsXZ.add(results.getMapProjection().calcPos(l.lat, l.lon));
        }
        AxisAlignedBoundingBoxXZ bounds =
          new AxisAlignedBoundingBoxXZ(pointsXZ);
             
        camera = OrthoTilesUtil.cameraForBounds(bounds, angle, from);
        projection = OrthoTilesUtil.projectionForBounds(bounds, angle, from);
       
      } else if (args.isPviewPos()) {
View Full Code Here

      }
    }
   
    /* ... for empty terrain */
   
    AxisAlignedBoundingBoxXZ terrainBoundary =
        calculateFileBoundary(osmData.getBounds());
   
    if (terrainBoundary != null) {
     
      EmptyTerrainBuilder.createAreasForEmptyTerrain(
View Full Code Here

    }
   
    if (boundedPoints.isEmpty()) {
      return null;
    } else {
      return new AxisAlignedBoundingBoxXZ(boundedPoints);
    }
   
  }
View Full Code Here

    return Collections.emptyList();
  }

  @Override
  public AxisAlignedBoundingBoxXZ getAxisAlignedBoundingBoxXZ() {
    return new AxisAlignedBoundingBoxXZ(pos.x, pos.z, pos.x, pos.z);
  }
View Full Code Here

      return triangleXYZ;
    }
   
    @Override
    public AxisAlignedBoundingBoxXZ getAxisAlignedBoundingBoxXZ() {
      return new AxisAlignedBoundingBoxXZ(
          min(p0.x, min(p1.x, p2.x)),
          min(p0.z, min(p1.z, p2.z)),
          max(p0.x, max(p1.x, p2.x)),
          max(p0.z, max(p1.z, p2.z)));
    }
View Full Code Here

    return node;
  }
 
  @Override
  public AxisAlignedBoundingBoxXZ getAxisAlignedBoundingBoxXZ() {
    return new AxisAlignedBoundingBoxXZ(singleton(node.getPos()));
  }
View Full Code Here

    return connectors.getPosXYZ(outlinePolygonXZ);
  }

  @Override
  public AxisAlignedBoundingBoxXZ getAxisAlignedBoundingBoxXZ() {
    return new AxisAlignedBoundingBoxXZ(
        area.getOuterPolygon().getVertexCollection());
  }
View Full Code Here

      return new SimplePolygonXZ(vertices);
    }
   
    @Override
    public AxisAlignedBoundingBoxXZ getAxisAlignedBoundingBoxXZ() {
      return new AxisAlignedBoundingBoxXZ(
        Math.min(getTopLeft().getPos().x, getBottomLeft().getPos().x),
        Math.min(getBottomLeft().getPos().z, getBottomRight().getPos().z),
        Math.max(getTopRight().getPos().x, getBottomRight().getPos().x),
        Math.max(getTopLeft().getPos().z, getTopRight().getPos().z));
    }
View Full Code Here

  public AxisAlignedBoundingBoxXZ getAxisAlignedBoundingBoxXZ() {
   
    if (isBroken() || getOutlinePolygonXZ() == null) {
      return null;
    } else {
      return new AxisAlignedBoundingBoxXZ(
          getOutlinePolygonXZ().getVertexCollection());
    }
   
  }
View Full Code Here

TOP

Related Classes of org.osm2world.core.math.AxisAlignedBoundingBoxXZ

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.