public class BoundingBoxCalculator extends Object
Modifier and Type | Method and Description |
---|---|
static BoundingBox |
boxFromBounds(Point3d pos,
double radius,
boolean do3D,
Dimensions dimensions)
Calculates a bounding box for a point with a scalar radius in all dimensions.
|
static BoundingBox |
boxFromBounds(Point3d center,
cern.colt.matrix.DoubleMatrix1D radiiMatrix,
boolean do3D,
Dimensions dimensions)
Calculates a bounding box for a point with varying radii in each dimension (that have already
been resolved into a matrix)
|
public static BoundingBox boxFromBounds(Point3d pos, double radius, boolean do3D, Dimensions dimensions)
pos
- center-pointradius
- size of scalar radiusdo3D
- 3 dimensions (XYZ) iff true, otherwise 2 dimensions (XZ)dimensions
- bounds on the scene, used to clip the bounding-boxpublic static BoundingBox boxFromBounds(Point3d center, cern.colt.matrix.DoubleMatrix1D radiiMatrix, boolean do3D, Dimensions dimensions)
center
- center-pointradiiMatrix
- a matrix with resolved-radii for each dimensiondo3D
- 3 dimensions (XYZ) iff true, otherwise 2 dimensions (XZ)dimensions
- image-bounds, used to clip the bounding-boxCopyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.