com.aspose.threed

Interfaces

Classes

Enums

Exceptions

com.aspose.threed

Class BoundingBox

    • 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
      • fromGeometry

        public static BoundingBox fromGeometry(Geometry geometry)
        Construct a bounding box from given geometry
        Parameters:
        geometry -
      • toString

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

        public boolean equals(Object obj)
        Determines if two objects are equal
        Overrides:
        equals in class Object
        Parameters:
        obj -
      • 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 Object