public class BoundingBoxFactory extends Object
BoundingBox
.Modifier and Type | Method and Description |
---|---|
static BoundingBox |
at(int x,
int y,
int width,
int height)
Short-hand factory method for creating a 2D bounding-box.
|
static BoundingBox |
at(int x,
int y,
int z,
int width,
int height,
int depth)
Short-hand factory method for creating a 3D bounding-box.
|
static BoundingBox |
uniform3D(int corner,
int extent)
Short-hand factory method for creating a 3D bounding-box, where a coordinate is identical in
each dimension.
|
public static BoundingBox at(int x, int y, int width, int height)
x
- left-corner in x-dimensiony
- left-corner in y-dimensionwidth
- bounding-box width (extent in x-dimension)height
- bounding-box width (extent in y-dimension)public static BoundingBox at(int x, int y, int z, int width, int height, int depth)
x
- left-corner in x-dimensiony
- left-corner in y-dimensionz
- left-corner in z-dimensionwidth
- bounding-box width (extent in x-dimension)height
- bounding-box width (extent in y-dimension)depth
- bounding-box width (extent in z-dimension)public static BoundingBox uniform3D(int corner, int extent)
corner
- left-corner in every dimensionextent
- extent in every dimensionCopyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.