com.aspose.threed

Interfaces

Classes

Enums

Exceptions

com.aspose.threed

Class BoundingBox2D

  • java.lang.Object
    • com.aspose.threed.BoundingBox2D
  • All Implemented Interfaces:
    com.aspose.threed.Struct<BoundingBox2D>, java.io.Serializable, java.lang.Cloneable


    public final class BoundingBox2D
    extends java.lang.Object
    implements com.aspose.threed.Struct<BoundingBox2D>, java.io.Serializable
    The axis-aligned bounding box for Vector2
    See Also:
    Serialized Form
    • Field Detail

      • NULL

        public static final BoundingBox2D NULL
        The null bounding box
      • INFINITE

        public static final BoundingBox2D INFINITE
        The infinite bounding box
    • Constructor Detail

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

        public BoundingBox2D()
    • 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 java.lang.String toString()
        Gets the string representation of the bounding box.
        Overrides:
        toString in class java.lang.Object
      • clone

        public BoundingBox2D clone()
        Specified by:
        clone in interface com.aspose.threed.Struct<BoundingBox2D>
        Overrides:
        clone in class java.lang.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 java.lang.Object
      • equals

        public boolean equals(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object