Examples of BoundingBox


Examples of org.rascalmpl.library.vis.util.vector.BoundingBox

  public void setSize(int x,int y){
    appletRoot.setSize(x + appletRoot.getBorderWidth() , y + appletRoot.getBorderWidth() );
  }
 
  public BoundingBox getMinViewingSize(){
    BoundingBox box = appletRoot.getFigure().minSize;
    Rectangle r = appletRoot.computeTrim(0, 0, FigureMath.round(box.getX()), FigureMath.round(box.getY()));
    return new BoundingBox(r.width, r.height);
  }
View Full Code Here

Examples of org.sbml.jsbml.ext.layout.BoundingBox

          double width = nodeView.getWidth();
          double depth = 0.0;
          Dimensions dim = new Dimensions(width, height, depth, level, version);
          Point point = new Point(xpos, ypos, zpos, level, version);
         
          BoundingBox box = new BoundingBox();
          box.setLevel(level);
          box.setVersion(version);
          box.setPosition(point);
          box.setDimensions(dim);
         
          if (nodeType.equals(CySBMLConstants.NODETYPE_SPECIES)){
            SpeciesGlyph sGlyph = new SpeciesGlyph();
            sGlyph.setId(nodeId);
            sGlyph.setVersion(version);
View Full Code Here

Examples of org.spout.vanilla.world.generator.structure.StructurePiece.BoundingBox

  public void placeObject(World w, int x, int y, int z) {
    final StructurePiece temple = getTemple(w.getBiome(x, y, z));
    if (temple == null) {
      return;
    }
    final BoundingBox boundingBox = temple.getBoundingBox();
    y = getAverageHeight(w, x, z, (int) boundingBox.getXSize(), (int) boundingBox.getZSize());
    temple.setPosition(new Point(w, x, y, z));
    temple.setRotation(Quaternionf.fromAngleDegAxis(random.nextInt(4) * 90, 0, 1, 0));
    if (temple.canPlace()) {
      temple.place();
    }
View Full Code Here

Examples of pr.battlebots.gen.BoundingBox

        r = new Render(this);
    }

    @Override
    public void onStart() {
        gen(new BoundingBox());
    }
View Full Code Here

Examples of rakama.worldtools.coord.BoundingBox

        int maxx = minx + 511;
        int maxz = minz + 511;
        int miny = 0;
        int maxy = 255;
       
        this.box = new BoundingBox(minx, miny, minz, maxx, maxy, maxz);
    }
View Full Code Here

Examples of shapes.algorithms.BoundingBox

  private BoundingBox v;
 
  @Before
  public void setUp() throws Exception {
    v = new BoundingBox();
  }
View Full Code Here

Examples of slash.navigation.common.BoundingBox

                if (i < positions.size() - 1)
                    waypointsBuffer.append(",");
            }
        }

        BoundingBox boundingBox = new BoundingBox(positions);
        String southWestBuffer = "new google.maps.LatLng(" + boundingBox.getSouthWest().getLatitude() + "," + boundingBox.getSouthWest().getLongitude() + ")";
        String northEastBuffer = "new google.maps.LatLng(" + boundingBox.getNorthEast().getLatitude() + "," + boundingBox.getNorthEast().getLongitude() + ")";
        String centerBuffer = "new google.maps.LatLng(" + boundingBox.getCenter().getLatitude() + "," + boundingBox.getCenter().getLongitude() + ")";

        String output = template.replaceAll("INSERT_ROUTENAME", route.getName()).
                replaceAll("INSERT_TRACK", routeBuffer.toString()).
                replaceAll("INSERT_ROUTE", trackBuffer.toString()).
                replaceAll("INSERT_WAYPOINTS", waypointsBuffer.toString()).
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.