public class LatticePlane extends java.lang.Object implements AtomTest, java.io.Serializable
Constructor | Description |
---|---|
LatticePlane(Primitive primitive,
int[] h) |
Modifier and Type | Method | Description |
---|---|---|
int |
getMillerIndex(int i) |
Returns the current value of the i-th Miller index.
|
Vector |
getOrigin() |
|
Plane |
getPlane() |
|
double |
getPosition() |
Returns the position i, such the the plane is located at the i-th from the origin.
|
double |
getSpacePosition() |
Gets the position of the plane as the distance from the
origin in the direction of the normal.
|
boolean |
inPlane(Vector p) |
Returns true if the given point is inside the plane (within some small tolerance).
|
void |
invert() |
Changes the direction of the normal vector so that it points
toward the other side of the plane from its present orientation.
|
boolean |
isPositiveSide(Vector p) |
Returns true if the given point is on the side of the
plane toward which the normal vector points.
|
void |
setMillerIndex(int i,
int h) |
Sets the i-th Miller index to h, keeping the others fixed.
|
void |
setMillerIndices(int[] h) |
Sets the plane to the orientation specified by the given Miller indices
applied to the current primitive.
|
void |
setOrigin(Vector origin) |
Sets the origin from which the position of the atom is measured.
|
void |
setPosition(double d) |
Sets to the position of the i-th plane from the one through the origin.
|
void |
setPrimitive(Primitive primitive) |
|
void |
setSpacePosition(double d) |
Sets the position of the plane to be the given distance from the
origin in the direction of the normal.
|
void |
setTolerance(double tolerance) |
|
boolean |
test(IAtom a) |
Returns true if atom passes the test.
|
public LatticePlane(Primitive primitive, int[] h)
public boolean test(IAtom a)
AtomTest
public void setTolerance(double tolerance)
public void setPrimitive(Primitive primitive)
public void setMillerIndices(int[] h)
public int getMillerIndex(int i)
public void setMillerIndex(int i, int h)
public void setSpacePosition(double d)
public double getSpacePosition()
public void setPosition(double d)
public double getPosition()
public boolean isPositiveSide(Vector p)
public boolean inPlane(Vector p)
public Plane getPlane()
public void setOrigin(Vector origin)
public Vector getOrigin()
public void invert()