com.aspose.threed

Interfaces

Classes

Enums

Exceptions

Class BoundingBox2D

    • Field Detail

      • INFINITE

        public static final BoundingBox2D INFINITE
        The infinite bounding box
      • NULL

        public static final BoundingBox2D NULL
        The null bounding box
    • Constructor Detail

      • BoundingBox2D

        public BoundingBox2D()
      • BoundingBox2D

        public BoundingBox2D(Vector2 minimum,
                             Vector2 maximum)
        Initialize a finite bounding box with given minimum and maximum corner
        Parameters:
        minimum - The minimum corner
        maximum - The maximum corner
    • Method Detail

      • getExtent

        public BoundingBoxExtent getExtent()
        Gets the extent of the bounding box.
      • getMinimum

        public Vector2 getMinimum()
        The minimum corner of the bounding box
      • getMaximum

        public Vector2 getMaximum()
        The maximum corner of the bounding box
      • merge

        public void merge(Vector2 pt)
        Merges the new box into the current bounding box.
        Parameters:
        pt -
      • merge

        public void merge(BoundingBox2D bb)
        Merges the new box into the current bounding box.
        Parameters:
        bb -
      • toString

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

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

        public int hashCode()
        Overrides:
        hashCode in class Object