public final class VectorCombinationComputer
extends java.lang.Object
Constructor and Description |
---|
VectorCombinationComputer(org.apache.commons.math3.geometry.euclidean.threed.Vector3D[] inputVectors,
double cutoffDistance)
Compute all combinations of input vectors shorter than cutoff distance.
|
VectorCombinationComputer(org.apache.commons.math3.geometry.euclidean.threed.Vector3D[] inputVectors,
double cutoffDistance,
boolean includeZero)
Compute all combinations of input vectors shorter than cutoff distance
|
Modifier and Type | Method and Description |
---|---|
double[] |
computeVector(int x,
int y,
int z)
Compute a certain combination of the vectors stored in this array.
|
protected void |
getAllVectors()
Compute all vectors that are shorter than cutoff distance.
|
java.util.List<int[]> |
getSupercellCoordinates()
Get list of all image coordinates of vectors
|
java.util.List<org.apache.commons.math3.geometry.euclidean.threed.Vector3D> |
getVectors()
Get list of all vectors shorter than the cutoff
|
public VectorCombinationComputer(org.apache.commons.math3.geometry.euclidean.threed.Vector3D[] inputVectors, double cutoffDistance)
inputVectors
- Vectors to be combined. Must be exactly 3 linearly-independent vectorscutoffDistance
- Cutoff distancepublic VectorCombinationComputer(org.apache.commons.math3.geometry.euclidean.threed.Vector3D[] inputVectors, double cutoffDistance, boolean includeZero)
inputVectors
- Vectors to be combined. Must be exactly 3 linearly-independent vectorscutoffDistance
- Cutoff distanceincludeZero
- Whether to include the zero vectorprotected void getAllVectors()
public double[] computeVector(int x, int y, int z)
x
- X coordinatey
- Y coordinatez
- Z coordinatepublic java.util.List<org.apache.commons.math3.geometry.euclidean.threed.Vector3D> getVectors()
public java.util.List<int[]> getSupercellCoordinates()