BoundingBox2D
Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.threed.Struct, java.io.Serializable
public final class BoundingBox2D implements Struct<BoundingBox2D>, Serializable
The axis-aligned bounding box for Vector2
Constructors
| Constructor | Description |
|---|---|
| BoundingBox2D(Vector2 minimum, Vector2 maximum) | Initialize a finite bounding box with given minimum and maximum corner |
| BoundingBox2D() |
Fields
| Field | Description |
|---|---|
| INFINITE | The infinite bounding box |
| NULL | The null bounding box |
Methods
| Method | Description |
|---|---|
| clone() | |
| copyFrom(BoundingBox2D src) | |
| equals(Object obj) | |
| getClass() | |
| getExtent() | Gets the extent of the bounding box. |
| getMaximum() | The maximum corner of the bounding box |
| getMinimum() | The minimum corner of the bounding box |
| hashCode() | |
| merge(BoundingBox2D bb) | Merges the new box into the current bounding box. |
| merge(Vector2 pt) | Merges the new box into the current bounding box. |
| notify() | |
| notifyAll() | |
| toString() | Gets the string representation of the bounding box. |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
BoundingBox2D(Vector2 minimum, Vector2 maximum)
public BoundingBox2D(Vector2 minimum, Vector2 maximum)
Initialize a finite bounding box with given minimum and maximum corner
Parameters:
| Parameter | Type | Description |
|---|---|---|
| minimum | Vector2 | The minimum corner |
| maximum | Vector2 | The maximum corner |
BoundingBox2D()
public BoundingBox2D()
INFINITE
public static final BoundingBox2D INFINITE
The infinite bounding box
NULL
public static final BoundingBox2D NULL
The null bounding box
clone()
public BoundingBox2D clone()
Clone current instance
Returns: BoundingBox2D
copyFrom(BoundingBox2D src)
public void copyFrom(BoundingBox2D src)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| src | BoundingBox2D |
equals(Object obj)
public boolean equals(Object obj)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| obj | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getExtent()
public BoundingBoxExtent getExtent()
Gets the extent of the bounding box.
Returns: BoundingBoxExtent - the extent of the bounding box.
getMaximum()
public Vector2 getMaximum()
The maximum corner of the bounding box
Returns: Vector2 - The maximum corner of the bounding box
getMinimum()
public Vector2 getMinimum()
The minimum corner of the bounding box
Returns: Vector2 - The minimum corner of the bounding box
hashCode()
public int hashCode()
Returns: int
merge(BoundingBox2D bb)
public void merge(BoundingBox2D bb)
Merges the new box into the current bounding box.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| bb | BoundingBox2D | The bounding box to merge |
merge(Vector2 pt)
public void merge(Vector2 pt)
Merges the new box into the current bounding box.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| pt | Vector2 | The point to merge |
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
toString()
public String toString()
Gets the string representation of the bounding box.
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | long | |
| arg1 | int |