Package org.openpixi.pixi.physics.util

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


    int region = BoundaryRegions.X_MIN + BoundaryRegions.Y_MIN;
    int neighbor = neighborMap.getBoundaryNeighbor(region);
    String identification = identificationString(
        GeneralBoundaryType.Hardwall, myPartID, region, "boundary-corner");

    if (myPart.xmin() != globalSimulation.xmin() || myPart.ymin() != globalSimulation.ymin()) {

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


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

    testPotentialNeighborsCount(1, neighbors.length,  identification);

    if (myPart.xmax() == globalSimulation.xmax() && myPart.ymin() != globalSimulation.ymin()) {
      testForAnyNeighbor(neighbors[0], partitions.length, identification);
    }
    else {
      testForNoNeighbor(neighbors[0], identification);
    }
View Full Code Here

      xstart -= Grid.EXTRA_CELLS_BEFORE_GRID;
    }
    if (mypart.xmax() == globalSettings.getGridCellsX() - 1) {
      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;
    }
View Full Code Here

    }
    else if (neighborPart.xmax() < myPart.xmin()) {
      xdirec = -1;
    }

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

        largestYmax = b.ymax();
      }
      if (b.xmin() < smallestXmin) {
        smallestXmin = b.xmin();
      }
      if (b.ymin() < smallestYmin) {
        smallestYmin = b.ymin();
      }

      for (int j = i + 1; j < partitions.length; ++j) {
        IntBox b2 = partitions[j];
View Full Code Here

      }
      if (b.xmin() < smallestXmin) {
        smallestXmin = b.xmin();
      }
      if (b.ymin() < smallestYmin) {
        smallestYmin = b.ymin();
      }

      for (int j = i + 1; j < partitions.length; ++j) {
        IntBox b2 = partitions[j];
        if (areEqual(b, b2)) {
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.