public class BoundaryTruncatedOctahedron extends Boundary
There are no subclasses for periodic and nonperiodic boundary conditions for this class because nonperiodic boundary conditions are not applicable for truncated octahedrons.
Modifier and Type  Field and Description 

protected IVectorMutable 
dimensions 
protected IVectorMutable 
dimensionsHalf 
protected IVectorMutable 
intoTruncatedOctahedron 
protected IVectorMutable 
rrounded 
protected float[][] 
shift 
protected float[][] 
shift0 
box, eventManager, inflateEvent, shape, space
Constructor and Description 

BoundaryTruncatedOctahedron(ISpace _space) 
BoundaryTruncatedOctahedron(ISpace _space,
double boxSize) 
Modifier and Type  Method and Description 

IVector 
centralImage(IVector r)
Determines the translation vector needed to apply a periodicimage
transformation that moves the given point to an image point within the
boundary (if it lies outside, in a direction subject to periodic
imaging).

IVector 
getBoxSize()
Returns the length of the sides of a rectangular box oriented in the lab
frame and in which the boundary is inscribed.

IVector 
getEdgeVector(int d)
Returns the vector that defines the edge of this boundary for the given
dimension.

IndexIteratorSizable 
getIndexIterator() 
boolean 
getPeriodicity(int i)
Returns true if the boundary is periodic in the given direction (as
defined by the getEdgeVector method).

double[][] 
imageOrigins(int nShells)
Set of vectors describing the displacements needed to translate the
central image to all of the periodic images.

void 
nearestImage(IVectorMutable dr)
The nearest image is the pair of atom images that are closest when all
periodicboundary images are considered.

IVectorMutable 
randomPosition() 
void 
setBoxSize(IVector v)
Scales the boundary dimensions such that the boundary's would be
inscribed within a rectangle of the of the given size.

protected final IVectorMutable intoTruncatedOctahedron
protected final IVectorMutable rrounded
protected final IVectorMutable dimensions
protected final IVectorMutable dimensionsHalf
protected final float[][] shift0
protected float[][] shift
public BoundaryTruncatedOctahedron(ISpace _space)
public BoundaryTruncatedOctahedron(ISpace _space, double boxSize)
public boolean getPeriodicity(int i)
IBoundary
public final IVector getBoxSize()
IBoundary
public IVectorMutable randomPosition()
public IndexIteratorSizable getIndexIterator()
getIndexIterator
in class Boundary
public void setBoxSize(IVector v)
IBoundary
public IVector getEdgeVector(int d)
IBoundary
public double[][] imageOrigins(int nShells)
Boundary
imageOrigins
in class Boundary
nShells
 the number of shells of images to be computedpublic void nearestImage(IVectorMutable dr)
IBoundary
public IVector centralImage(IVector r)
IBoundary
r
 vector position of untransformed point; r is not changed by
this method