public class AutoBox
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
javax.vecmath.Point3f |
center |
javax.vecmath.Point3f |
lower |
javax.vecmath.Point3f |
upper |
float |
widthX |
float |
widthY |
float |
widthZ |
Constructor and Description |
---|
AutoBox()
Creates a clear instance only
|
AutoBox(Atom[] allPoints)
Creates an AutoBox around the passed scatter-plot by the coordinates of
atoms
|
AutoBox(javax.vecmath.Point3f[] allPoints)
Creates an AutoBox around the passed scatter-plot
|
Modifier and Type | Method and Description |
---|---|
AutoBox |
copy()
Copies this instance of the box
|
void |
normalize()
Normalizes the box and all of its field so that the center locates at the
zero-point
|
void |
scale(float scale)
Scales all values with a specified factor
|
public javax.vecmath.Point3f lower
public javax.vecmath.Point3f upper
public javax.vecmath.Point3f center
public float widthX
public float widthY
public float widthZ
public AutoBox()
public AutoBox(javax.vecmath.Point3f[] allPoints)
allPoints
- all coordinates of the grouppublic AutoBox(Atom[] allPoints)
allPoints
- all atoms of the grouppublic void normalize()
public void scale(float scale)
scale
- the scale-factorpublic AutoBox copy()