Package com.aspose.threed
Class BoundingBox2D
- java.lang.Object
-
- com.aspose.threed.BoundingBox2D
-
- All Implemented Interfaces:
com.aspose.threed.Struct<BoundingBox2D>
,java.io.Serializable
,java.lang.Cloneable
public final class BoundingBox2D extends java.lang.Object implements com.aspose.threed.Struct<BoundingBox2D>, java.io.Serializable
The axis-aligned bounding box forVector2
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static BoundingBox2D
INFINITE
The infinite bounding boxstatic BoundingBox2D
NULL
The null bounding box
-
Constructor Summary
Constructors Constructor Description BoundingBox2D()
BoundingBox2D(Vector2 minimum, Vector2 maximum)
Initialize a finite bounding box with given minimum and maximum corner
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 boxVector2
getMinimum()
The minimum corner of the bounding boxint
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.
-
-
-
Field Detail
-
NULL
public static final BoundingBox2D NULL
The null bounding box
-
INFINITE
public static final BoundingBox2D INFINITE
The infinite bounding box
-
-
Method Detail
-
getExtent
public BoundingBoxExtent getExtent()
Gets the extent of the bounding box.
-
getMinimum
public Vector2 getMinimum()
The minimum corner of the bounding box
-
getMaximum
public Vector2 getMaximum()
The maximum corner of the bounding box
-
merge
public void merge(Vector2 pt)
Merges the new box into the current bounding box.- Parameters:
pt
-
-
merge
public void merge(BoundingBox2D bb)
Merges the new box into the current bounding box.- Parameters:
bb
-
-
toString
public java.lang.String toString()
Gets the string representation of the bounding box.- Overrides:
toString
in classjava.lang.Object
-
clone
public BoundingBox2D clone()
- Specified by:
clone
in interfacecom.aspose.threed.Struct<BoundingBox2D>
- Overrides:
clone
in classjava.lang.Object
-
copyFrom
public void copyFrom(BoundingBox2D src)
- Specified by:
copyFrom
in interfacecom.aspose.threed.Struct<BoundingBox2D>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-