Package com.aspose.threed
Class BoundingBox
- java.lang.Object
-
- com.aspose.threed.BoundingBox
-
- All Implemented Interfaces:
com.aspose.threed.Struct<BoundingBox>
,java.io.Serializable
,java.lang.Cloneable
public final class BoundingBox extends java.lang.Object implements com.aspose.threed.Struct<BoundingBox>, java.io.Serializable
The axis-aligned bounding box- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static BoundingBox
INFINITE
The infinite bounding boxstatic BoundingBox
NULL
The null bounding box
-
Constructor Summary
Constructors Constructor 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 cornerBoundingBox(Vector3 minimum, Vector3 maximum)
Initialize a finite bounding box with given minimum and maximum corner
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BoundingBox
clone()
void
copyFrom(BoundingBox src)
boolean
equals(java.lang.Object obj)
Determines if two objects are equalstatic BoundingBox
fromGeometry(Geometry geometry)
Construct a bounding box from given geometryVector3
getCenter()
The center of the bounding box.BoundingBoxExtent
getExtent()
Gets the extent of the bounding box.Vector3
getMaximum()
The maximum corner of the bounding boxVector3
getMinimum()
The minimum corner of the bounding boxVector3
getSize()
The size of the bounding boxint
hashCode()
Returns the hash code for this instancestatic BoundingBox
mul(BoundingBox bbox, Matrix4 mat)
Operator overloading for multiplyjava.lang.String
toString()
Gets the string representation of the bounding box.
-
-
-
Field Detail
-
NULL
public static final BoundingBox NULL
The null bounding box
-
INFINITE
public static final BoundingBox INFINITE
The infinite bounding box
-
-
Constructor Detail
-
BoundingBox
public BoundingBox(Vector3 minimum, Vector3 maximum)
Initialize a finite bounding box with given minimum and maximum corner- Parameters:
minimum
- The minimum cornermaximum
- The maximum corner
-
BoundingBox
public 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
public BoundingBox()
-
-
Method Detail
-
getExtent
public BoundingBoxExtent getExtent()
Gets the extent of the bounding box.
-
getMinimum
public Vector3 getMinimum()
The minimum corner of the bounding box
-
getMaximum
public Vector3 getMaximum()
The maximum corner of the bounding box
-
getSize
public Vector3 getSize()
The size of the bounding box
-
getCenter
public Vector3 getCenter()
The center of the bounding box.
-
fromGeometry
public static BoundingBox fromGeometry(Geometry geometry)
Construct a bounding box from given geometry- Parameters:
geometry
-
-
mul
public static BoundingBox mul(BoundingBox bbox, Matrix4 mat)
Operator overloading for multiply- Parameters:
bbox
-mat
-
-
toString
public java.lang.String toString()
Gets the string representation of the bounding box.- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
Determines if two objects are equal- Overrides:
equals
in classjava.lang.Object
- Parameters:
obj
-
-
clone
public BoundingBox clone()
- Specified by:
clone
in interfacecom.aspose.threed.Struct<BoundingBox>
- Overrides:
clone
in classjava.lang.Object
-
copyFrom
public void copyFrom(BoundingBox src)
- Specified by:
copyFrom
in interfacecom.aspose.threed.Struct<BoundingBox>
-
hashCode
public int hashCode()
Returns the hash code for this instance- Overrides:
hashCode
in classjava.lang.Object
-
-