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 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 corner
        maximum - 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 -
      • toString

        public java.lang.String toString()
        Gets the string representation of the bounding box.
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Determines if two objects are equal
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj -
      • clone

        public BoundingBox clone()
        Specified by:
        clone in interface com.aspose.threed.Struct<BoundingBox>
        Overrides:
        clone in class java.lang.Object
      • copyFrom

        public void copyFrom​(BoundingBox src)
        Specified by:
        copyFrom in interface com.aspose.threed.Struct<BoundingBox>
      • hashCode

        public int hashCode()
        Returns the hash code for this instance
        Overrides:
        hashCode in class java.lang.Object