BoundaryRectangularPeriodicSwitchpublic class BoundaryRectangularPeriodic extends BoundaryRectangular
| Modifier and Type | Field | Description | 
|---|---|---|
| protected Vector | tempImage | 
box, eventManager, inflateEvent, shape, spacedimensions, edgeVectors, shift0| Constructor | Description | 
|---|---|
| BoundaryRectangularPeriodic(Space _space) | Constructs cubic boundary with the default box-size given by the Simulation. | 
| BoundaryRectangularPeriodic(Space _space,
                           double boxSize) | Constructs cubic boundary for the given Space, with each edge of length boxSize. | 
| BoundaryRectangularPeriodic(Space _space,
                           double[] boxSize) | Constructs rectangular boundary for the given Space, with each edge of length boxSize. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| Vector | centralImage(Vector r) | Determines the translation vector needed to apply a periodic-image
 transformation that moves the given point to an image point within the
 boundary (if it lies outside, in a direction subject to periodic
 imaging). | 
| IndexIteratorSizable | getIndexIterator() | |
| boolean | getPeriodicity(int d) | Returns true if the boundary is periodic in the given direction (as
 defined by the getEdgeVector method). | 
| void | nearestImage(Vector dr) | The nearest image is the pair of atom images that are closest when all
 periodic-boundary images are considered. | 
| void | updateDimensions() | 
getBox, getCenter, getEventManager, getPeriodicity, getShape, setBoxgetBoxSize, getEdgeVector, imageOrigins, setBoxSize, volumeprotected final Vector tempImage
public BoundaryRectangularPeriodic(Space _space)
public BoundaryRectangularPeriodic(Space _space, double boxSize)
public BoundaryRectangularPeriodic(Space _space, double[] boxSize)
public void updateDimensions()
updateDimensions in class BoundaryRectangularpublic IndexIteratorSizable getIndexIterator()
getIndexIterator in class Boundarypublic Vector centralImage(Vector r)
BoundarycentralImage in class Boundaryr - vector position of untransformed point; r is not changed by
          this methodpublic void nearestImage(Vector dr)
BoundaryIf the vector passed to this method is the displacement vector between two points, the vector will be transformed such that it corresponds to the vector between the nearest image of those two points.
nearestImage in class Boundarydr - the vector to be transformedpublic boolean getPeriodicity(int d)
BoundarygetPeriodicity in class Boundaryd - the dimension of the desired periodicity