public final class BoundingBox2D extends java.lang.Object implements com.aspose.threed.Struct<BoundingBox2D>, java.io.Serializable
Vector2
Modifier and Type | Field and Description |
---|---|
static BoundingBox2D |
INFINITE
The infinite bounding box
|
static BoundingBox2D |
NULL
The null bounding box
|
Constructor and Description |
---|
BoundingBox2D() |
BoundingBox2D(Vector2 minimum,
Vector2 maximum)
Initialize a finite bounding box with given minimum and maximum corner
|
Modifier and Type | Method and Description |
---|---|
BoundingBox2D |
clone() |
void |
copyFrom(BoundingBox2D src) |
boolean |
equals(java.lang.Object obj) |
BoundingBoxExtent |
getExtent()
Gets the extent of the bounding box.
|
Vector2 |
getMaximum()
The maximum corner of the bounding box
|
Vector2 |
getMinimum()
The minimum corner of the bounding box
|
int |
hashCode() |
void |
merge(BoundingBox2D bb)
Merges the new box into the current bounding box.
|
void |
merge(Vector2 pt)
Merges the new box into the current bounding box.
|
java.lang.String |
toString()
Gets the string representation of the bounding box.
|
public static final BoundingBox2D NULL
public static final BoundingBox2D INFINITE
public BoundingBox2D(Vector2 minimum, Vector2 maximum)
minimum
- The minimum cornermaximum
- The maximum cornerpublic BoundingBox2D()
public BoundingBoxExtent getExtent()
public Vector2 getMinimum()
public Vector2 getMaximum()
public void merge(Vector2 pt)
pt
- public void merge(BoundingBox2D bb)
bb
- public java.lang.String toString()
toString
in class java.lang.Object
public BoundingBox2D clone()
clone
in interface com.aspose.threed.Struct<BoundingBox2D>
clone
in class java.lang.Object
public void copyFrom(BoundingBox2D src)
copyFrom
in interface com.aspose.threed.Struct<BoundingBox2D>
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object