Constructor and Description |
---|
Box3D(double xmin,
double xmax,
double ymin,
double ymax,
double zmin,
double zmax)
Default constructor, that specifies the bounds along each dimension.
|
Modifier and Type | Method and Description |
---|---|
double |
depth()
Computes the depth of the bounding box, corresponding to the extent
along the Z dimension.
|
double |
getXMax() |
double |
getXMin() |
double |
getYMax() |
double |
getYMin() |
double |
getZMax() |
double |
getZMin() |
double |
height()
Computes the height of the bounding box, corresponding to the extent
along the Y dimension.
|
double |
volume()
Computes the volume of this bounding box.
|
double |
width()
Computes the width of the bounding box, corresponding to the extent along
the X dimension.
|
public Box3D(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax)
xmin
- the minimal bound along the x directionxmax
- the maximal bound along the x directionymin
- the minimal bound along the y directionymax
- the maximal bound along the y directionzmin
- the minimal bound along the z directionzmax
- the maximal bound along the z directionpublic double volume()
public double width()
public double height()
public double depth()
public double getXMin()
public double getXMax()
public double getYMin()
public double getYMax()
public double getZMin()
public double getZMax()
Copyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.