BoundingBox2D

BoundingBox2D

Overview

BoundingBox2D is a class in Aspose.3D FOSS for Java. Inherits from: Struct<BoundingBox2D>, Serializable.

The axis-aligned bounding box for Vector2 /

This class provides 11 methods for working with BoundingBox2D objects in Java programs. Available methods include: BoundingBox2D, clone, copyFrom, equals, getExtent, getMaximum, getMinimum, hashCode, merge, toString. All public members are accessible to any Java application after installing the Aspose.3D FOSS for Java package. Properties: INFINITE, NULL, extent, maximum, minimum.

Properties

NameTypeAccessDescription
extentBoundingBoxExtentReadGets the extent of the bounding box.
minimumVector2ReadThe minimum corner of the bounding box
@return The minimum corner of the bounding box
/
maximumVector2ReadThe maximum corner of the bounding box
@return The maximum corner of the bounding box
/
NULLBoundingBox2DReadThe null bounding box
/
INFINITEBoundingBox2DReadThe infinite bounding box
/

Methods

SignatureDescription
BoundingBox2D()Initializes a new instance of the BoundingBox2D class.
getExtent()BoundingBoxExtentGets the extent of the bounding box.
getMinimum()Vector2The minimum corner of the bounding box
@return The minimum corner of the bounding box
/
getMaximum()Vector2The maximum corner of the bounding box
@return The maximum corner of the bounding box
/
merge(pt: Vector2)Merges the new box into the current bounding box.
merge(bb: BoundingBox2D)Merges the new box into the current bounding box.
toString()StringGets the string representation of the bounding box.
clone()BoundingBox2DClone current instance
@return cloned instance
/
copyFrom(t: BoundingBox2D)Copy internal state from argument t
@param t source instance to copy
/
hashCode()intReturns the hash code for this instance
@return The hash code of the bounding box
/
equals(obj: Object)booleanDetermines if two objects are equal
@param obj The object to compare
@return true if two objects are equal
/

See Also

 English