public class BoundingBox extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
double |
xmax |
double |
xmin |
double |
ymax |
double |
ymin |
double |
zmax |
double |
zmin |
Constructor and Description |
---|
BoundingBox(Atom[] atoms)
Constructs a BoundingBox by calculating maxs and mins of given array of atoms.
|
BoundingBox(BoundingBox bb) |
BoundingBox(BoundingBox[] boxes)
Given a set of bounding boxes returns a bounding box that bounds all of them.
|
BoundingBox(double xmin,
double xmax,
double ymin,
double ymax,
double zmin,
double zmax) |
Modifier and Type | Method and Description |
---|---|
double[] |
getDimensions()
Returns the dimensions of this bounding box.
|
double[] |
getMinMax(double[] array)
Returns an array of size 2 with min and max values of given double array
|
boolean |
overlaps(BoundingBox o,
double cutoff)
Returns true if this bounding box overlaps given one, i.e.
|
String |
toString() |
void |
translate(javax.vecmath.Vector3d translation) |
public double xmin
public double xmax
public double ymin
public double ymax
public double zmin
public double zmax
public BoundingBox(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax)
public BoundingBox(BoundingBox bb)
public BoundingBox(Atom[] atoms)
atoms
- public BoundingBox(BoundingBox[] boxes)
boxes
- public double[] getDimensions()
public boolean overlaps(BoundingBox o, double cutoff)
cutoff
- public void translate(javax.vecmath.Vector3d translation)
public double[] getMinMax(double[] array)
array
- Copyright © 2000–2016 BioJava. All rights reserved.