Package org.openpixi.pixi.physics.util

Examples of org.openpixi.pixi.physics.util.IntBox.ymax()


    region = BoundaryRegions.X_CENTER + BoundaryRegions.Y_MAX;
    neighbor = neighborMap.getBoundaryNeighbor(region);
    identification = identificationString(
        GeneralBoundaryType.Hardwall, myPartID, region, "boundary-edge");

    if (myPart.ymax() != globalSimulation.ymax()) {

      // If the region is not at the bottom of global simulation
      // then it must have one neighbor
      testForAnyNeighbor(neighbor, partitions.length, identification);
    } else {
View Full Code Here


    String identification = identificationString(
        GeneralBoundaryType.Hardwall, myPartID, region, "border-corner");

    testPotentialNeighborsCount(3, neighbors.length,  identification);

    if (myPart.xmax() == globalSimulation.xmax() && myPart.ymax() == globalSimulation.ymax()) {

      // If the region is at global simulation corner it can not have any neighbors
      for (int neighbor: neighbors) {
        testForNoNeighbor(neighbor, identification);
      }
View Full Code Here

      // If the region is at global simulation corner it can not have any neighbors
      for (int neighbor: neighbors) {
        testForNoNeighbor(neighbor, identification);
      }
    }
    else if (myPart.xmax() == globalSimulation.xmax() || myPart.ymax() == globalSimulation.ymax()) {

      // If the region is not at global simulation corner but at its edge
      // it must have exactly one neighbor
      testForSingleNeighbor(neighbors, partitions.length, identification);
    } else {
View Full Code Here

      xend += Grid.EXTRA_CELLS_AFTER_GRID;
    }
    if (mypart.ymin() == 0) {
      ystart -= Grid.EXTRA_CELLS_BEFORE_GRID;
    }
    if (mypart.ymax() == globalSettings.getGridCellsY() - 1) {
      yend += Grid.EXTRA_CELLS_AFTER_GRID;
    }

    Cell[][] finalCells = new Cell[xend - xstart + 1][yend - ystart + 1];
    for (int x = xstart; x <= xend ; ++x) {
View Full Code Here

    }

    if (myPart.ymax() < neighborPart.ymin()) {
      ydirec = +1;
    }
    else if (neighborPart.ymax() < myPart.ymin()) {
      ydirec = -1;
    }

    return new Point(xdirec, ydirec);
  }
View Full Code Here

      }

      if (b.xmax() > largestXmax) {
        largestXmax = b.xmax();
      }
      if (b.ymax() > largestYmax) {
        largestYmax = b.ymax();
      }
      if (b.xmin() < smallestXmin) {
        smallestXmin = b.xmin();
      }
View Full Code Here

      if (b.xmax() > largestXmax) {
        largestXmax = b.xmax();
      }
      if (b.ymax() > largestYmax) {
        largestYmax = b.ymax();
      }
      if (b.xmin() < smallestXmin) {
        smallestXmin = b.xmin();
      }
      if (b.ymin() < smallestYmin) {
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.