public final class BoundingBox extends java.lang.Object implements com.aspose.threed.Struct<BoundingBox>, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static BoundingBox |
INFINITE
The infinite bounding box
|
static BoundingBox |
NULL
The null bounding box
|
Constructor and Description |
---|
BoundingBox() |
BoundingBox(double minX,
double minY,
double minZ,
double maxX,
double maxY,
double maxZ)
Initialize a finite bounding box with given minimum and maximum corner
|
BoundingBox(Vector3 minimum,
Vector3 maximum)
Initialize a finite bounding box with given minimum and maximum corner
|
Modifier and Type | Method and Description |
---|---|
BoundingBox |
clone() |
void |
copyFrom(BoundingBox src) |
boolean |
equals(java.lang.Object obj)
Determines if two objects are equal
|
static BoundingBox |
fromGeometry(Geometry geometry)
Construct a bounding box from given geometry
|
Vector3 |
getCenter()
The center of the bounding box.
|
BoundingBoxExtent |
getExtent()
Gets the extent of the bounding box.
|
Vector3 |
getMaximum()
The maximum corner of the bounding box
|
Vector3 |
getMinimum()
The minimum corner of the bounding box
|
Vector3 |
getSize()
The size of the bounding box
|
int |
hashCode()
Returns the hash code for this instance
|
static BoundingBox |
mul(BoundingBox bbox,
Matrix4 mat)
Operator overloading for multiply
|
java.lang.String |
toString()
Gets the string representation of the bounding box.
|
public static final BoundingBox NULL
public static final BoundingBox INFINITE
public BoundingBox(Vector3 minimum, Vector3 maximum)
minimum
- The minimum cornermaximum
- The maximum cornerpublic BoundingBox(double minX, double minY, double minZ, double maxX, double maxY, double maxZ)
public BoundingBox()
public BoundingBoxExtent getExtent()
public Vector3 getMinimum()
public Vector3 getMaximum()
public Vector3 getSize()
public Vector3 getCenter()
public static BoundingBox fromGeometry(Geometry geometry)
geometry
- public static BoundingBox mul(BoundingBox bbox, Matrix4 mat)
bbox
- mat
- public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- public BoundingBox clone()
clone
in interface com.aspose.threed.Struct<BoundingBox>
clone
in class java.lang.Object
public void copyFrom(BoundingBox src)
copyFrom
in interface com.aspose.threed.Struct<BoundingBox>
public int hashCode()
hashCode
in class java.lang.Object