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
| Name | Type | Access | Description |
|---|---|---|---|
extent | BoundingBoxExtent | Read | Gets the extent of the bounding box. |
minimum | Vector2 | Read | The minimum corner of the bounding box |
| @return The minimum corner of the bounding box | |||
| / | |||
maximum | Vector2 | Read | The maximum corner of the bounding box |
| @return The maximum corner of the bounding box | |||
| / | |||
NULL | BoundingBox2D | Read | The null bounding box |
| / | |||
INFINITE | BoundingBox2D | Read | The infinite bounding box |
| / |
Methods
| Signature | Description |
|---|---|
BoundingBox2D() | Initializes a new instance of the BoundingBox2D class. |
getExtent() → BoundingBoxExtent | Gets the extent of the bounding box. |
getMinimum() → Vector2 | The minimum corner of the bounding box |
| @return The minimum corner of the bounding box | |
| / | |
getMaximum() → Vector2 | The 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() → String | Gets the string representation of the bounding box. |
clone() → BoundingBox2D | Clone current instance |
| @return cloned instance | |
| / | |
copyFrom(t: BoundingBox2D) | Copy internal state from argument t |
| @param t source instance to copy | |
| / | |
hashCode() → int | Returns the hash code for this instance |
| @return The hash code of the bounding box | |
| / | |
equals(obj: Object) → boolean | Determines if two objects are equal |
| @param obj The object to compare | |
| @return true if two objects are equal | |
| / |