public final class BoundingBox2D extends Object implements com.aspose.threed.Struct<BoundingBox2D>, 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(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.
|
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 String toString()
public BoundingBox2D clone()
clone
in interface com.aspose.threed.Struct<BoundingBox2D>
clone
in class Object
public void copyFrom(BoundingBox2D src)
copyFrom
in interface com.aspose.threed.Struct<BoundingBox2D>
Copyright © 2019. All rights reserved.