Examples of AxisAlignedBoundingBoxXZ


Examples of org.osm2world.core.math.AxisAlignedBoundingBoxXZ

      if (nodeX > maxX) { maxX = nodeX; }
      if (nodeZ < minZ) { minZ = nodeZ; }
      if (nodeZ > maxZ) { maxZ = nodeZ; }
    }
   
    dataBoundary = new AxisAlignedBoundingBoxXZ(minX, minZ, maxX, maxZ);
   
  }
View Full Code Here

Examples of org.osm2world.core.math.AxisAlignedBoundingBoxXZ

  private DelaunayTriangulation triangulation;
 
  @Override
  public void setKnownSites(Collection<VectorXYZ> sites) {
   
    AxisAlignedBoundingBoxXZ boundingBox = new AxisAlignedBoundingBoxXZ(sites);
    boundingBox = boundingBox.pad(100);
   
    triangulation = new DelaunayTriangulation(boundingBox);
   
    int i = 0; //TODO remove
    int total = sites.size();
View Full Code Here

Examples of org.osm2world.core.math.AxisAlignedBoundingBoxXZ

    return Iterables.filter(overlaps, MapIntersectionWW.class);
  }
 
  @Override
  public AxisAlignedBoundingBoxXZ getAxisAlignedBoundingBoxXZ() {
    return new AxisAlignedBoundingBoxXZ(Arrays.asList(
        startNode.getPos(), endNode.getPos()));
  }
View Full Code Here

Examples of org.osm2world.core.math.AxisAlignedBoundingBoxXZ

  public static final Camera cameraForTiles(MapProjection mapProjection,
      List<TileNumber> tiles, double angleDeg, CardinalDirection from) {
   
    if (tiles.isEmpty()) { throw new IllegalArgumentException("empty tiles list"); }
   
    AxisAlignedBoundingBoxXZ result = boundsForTiles(mapProjection, tiles);
   
    return cameraForBounds(result, angleDeg, from);
   
  }
View Full Code Here

Examples of org.osm2world.core.math.AxisAlignedBoundingBoxXZ

    return result;
  }
 
  public static final Projection projectionForTile(MapProjection mapProjection,
      TileNumber tile, double angleDeg, CardinalDirection from) {
    AxisAlignedBoundingBoxXZ tileBounds = boundsForTile(mapProjection, tile);
    return projectionForBounds(tileBounds, angleDeg, from);
  }
View Full Code Here

Examples of org.osm2world.core.math.AxisAlignedBoundingBoxXZ

  public static final Projection projectionForTiles(MapProjection mapProjection,
      List<TileNumber> tiles, double angleDeg, CardinalDirection from) {
   
    if (tiles.isEmpty()) { throw new IllegalArgumentException("empty tiles list"); }
   
    AxisAlignedBoundingBoxXZ result = boundsForTiles(mapProjection, tiles);
   
    return projectionForBounds(result, angleDeg, from);
   
  }
View Full Code Here

Examples of org.osm2world.core.math.AxisAlignedBoundingBoxXZ

        tile2lat(tile.y, tile.zoom), tile2lon(tile.x, tile.zoom));
 
    VectorXZ tilePos2 = mapProjection.calcPos(
        tile2lat(tile.y+1, tile.zoom), tile2lon(tile.x+1, tile.zoom));
   
    return new AxisAlignedBoundingBoxXZ(Arrays.asList(tilePos1, tilePos2));
   
  }
View Full Code Here

Examples of org.osm2world.core.math.AxisAlignedBoundingBoxXZ

  }

  private static final AxisAlignedBoundingBoxXZ boundsForTiles(
      MapProjection mapProjection, List<TileNumber> tiles) {
   
    AxisAlignedBoundingBoxXZ result = boundsForTile(mapProjection, tiles.get(0));
   
    for (int i=1; i<tiles.size(); i++) {
      AxisAlignedBoundingBoxXZ newBox = boundsForTile(mapProjection, tiles.get(i));
      result = union(result, newBox);
    }
   
    return result;
   
View Full Code Here

Examples of org.osm2world.core.math.AxisAlignedBoundingBoxXZ

      int angle = Integer.parseInt(
          JOptionPane.showInputDialog(viewerFrame, "view angle"));
      CardinalDirection from = CardinalDirection.valueOf(
          JOptionPane.showInputDialog(viewerFrame, "from cardinal direction"));
     
      AxisAlignedBoundingBoxXZ tileBounds =
        data.getConversionResults().getMapData().getDataBoundary();
     
      renderOptions.camera = OrthoTilesUtil.cameraForTile(
          data.getConversionResults().getMapProjection(),
          new TileNumber(zoom, tileX, tileY), angle, from);
View Full Code Here

Examples of org.osm2world.core.math.AxisAlignedBoundingBoxXZ

  private DelaunayTriangulation triangulation;
 
  @Override
  public void setKnownSites(Collection<VectorXYZ> sites) {
   
    AxisAlignedBoundingBoxXZ boundingBox = new AxisAlignedBoundingBoxXZ(sites);
    boundingBox = boundingBox.pad(100);
   
    triangulation = new DelaunayTriangulation(boundingBox);
   
    for (VectorXYZ site : sites) {
      triangulation.insert(site);
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.