BoundingBox2D
Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.threed.Struct, java.io.Serializable
public final class BoundingBox2D implements Struct<BoundingBox2D>, Serializable
Kotak pembatas yang sejajar sumbu untuk Vector2
Konstruktor
| Konstruktor | Deskripsi |
|---|---|
| BoundingBox2D(Vector2 minimum, Vector2 maximum) | Inisialisasi kotak pembatas berhingga dengan sudut minimum dan maksimum yang diberikan |
| BoundingBox2D() |
Bidang
| Bidang | Deskripsi |
|---|---|
| INFINITE | Kotak pembatas tak terbatas |
| NULL | Kotak pembatas null |
Metode
| Metode | Deskripsi |
|---|---|
| clone() | |
| copyFrom(BoundingBox2D src) | |
| equals(Object obj) | |
| getClass() | |
| getExtent() | Mendapatkan rentang kotak pembatas. |
| getMaximum() | Sudut maksimum kotak pembatas |
| getMinimum() | Sudut minimum kotak pembatas |
| hashCode() | |
| merge(BoundingBox2D bb) | Menggabungkan kotak baru ke dalam kotak pembatas saat ini. |
| merge(Vector2 pt) | Menggabungkan kotak baru ke dalam kotak pembatas saat ini. |
| notify() | |
| notifyAll() | |
| toString() | Mendapatkan representasi string dari kotak pembatas. |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
BoundingBox2D(Vector2 minimum, Vector2 maximum)
public BoundingBox2D(Vector2 minimum, Vector2 maximum)
Inisialisasi kotak pembatas berhingga dengan sudut minimum dan maksimum yang diberikan
Parameters:
| Parameter | Tipe | Deskripsi |
|---|---|---|
| minimum | Vector2 | Sudut minimum |
| maximum | Vector2 | Sudut maksimum |
BoundingBox2D()
public BoundingBox2D()
INFINITE
public static final BoundingBox2D INFINITE
Kotak pembatas tak terbatas
NULL
public static final BoundingBox2D NULL
Kotak pembatas null
clone()
public BoundingBox2D clone()
Kloning instance saat ini
Returns: BoundingBox2D
copyFrom(BoundingBox2D src)
public void copyFrom(BoundingBox2D src)
Parameters:
| Parameter | Tipe | Deskripsi |
|---|---|---|
| src | BoundingBox2D |
equals(Object obj)
public boolean equals(Object obj)
Parameters:
| Parameter | Tipe | Deskripsi |
|---|---|---|
| obj | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getExtent()
public BoundingBoxExtent getExtent()
Mendapatkan rentang kotak pembatas.
Returns: BoundingBoxExtent - the extent of the bounding box.
getMaximum()
public Vector2 getMaximum()
Sudut maksimum kotak pembatas
Returns: Vector2 - The maximum corner of the bounding box
getMinimum()
public Vector2 getMinimum()
Sudut minimum kotak pembatas
Returns: Vector2 - The minimum corner of the bounding box
hashCode()
public int hashCode()
Returns: int
merge(BoundingBox2D bb)
public void merge(BoundingBox2D bb)
Menggabungkan kotak baru ke dalam kotak pembatas saat ini.
Parameters:
| Parameter | Tipe | Deskripsi |
|---|---|---|
| bb | BoundingBox2D | Kotak pembatas untuk digabungkan |
merge(Vector2 pt)
public void merge(Vector2 pt)
Menggabungkan kotak baru ke dalam kotak pembatas saat ini.
Parameters:
| Parameter | Tipe | Deskripsi |
|---|---|---|
| pt | Vector2 | Titik untuk digabungkan |
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
toString()
public String toString()
Mendapatkan representasi string dari kotak pembatas.
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
| Parameter | Tipe | Deskripsi |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parameter | Tipe | Deskripsi |
|---|---|---|
| arg0 | long | |
| arg1 | int |