BoundingBox2D
Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.threed.Struct, java.io.Serializable
public final class BoundingBox2D implements Struct<BoundingBox2D>, Serializable
La boîte englobante alignée sur les axes pour Vector2
Constructeurs
| Constructeur | Description |
|---|---|
| BoundingBox2D(Vector2 minimum, Vector2 maximum) | Initialiser une boîte englobante finie avec les coins minimum et maximum donnés |
| BoundingBox2D() |
Champs
| Champ | Description |
|---|---|
| INFINITE | La boîte englobante infinie |
| NULL | La boîte englobante nulle |
Méthodes
| Méthode | Description |
|---|---|
| clone() | |
| copyFrom(BoundingBox2D src) | |
| equals(Object obj) | |
| getClass() | |
| getExtent() | Obtient l’étendue de la boîte englobante. |
| getMaximum() | Le coin maximum de la boîte englobante |
| getMinimum() | Le coin minimum de la boîte englobante |
| hashCode() | |
| merge(BoundingBox2D bb) | Fusionne la nouvelle boîte dans la boîte englobante actuelle. |
| merge(Vector2 pt) | Fusionne la nouvelle boîte dans la boîte englobante actuelle. |
| notify() | |
| notifyAll() | |
| toString() | Obtient la représentation sous forme de chaîne de la boîte englobante. |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
BoundingBox2D(Vector2 minimum, Vector2 maximum)
public BoundingBox2D(Vector2 minimum, Vector2 maximum)
Initialiser une boîte englobante finie avec les coins minimum et maximum donnés
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| minimum | Vector2 | Le coin minimum |
| maximum | Vector2 | Le coin maximum |
BoundingBox2D()
public BoundingBox2D()
INFINITE
public static final BoundingBox2D INFINITE
La boîte englobante infinie
NULL
public static final BoundingBox2D NULL
La boîte englobante nulle
clone()
public BoundingBox2D clone()
Cloner l’instance actuelle
Returns: BoundingBox2D
copyFrom(BoundingBox2D src)
public void copyFrom(BoundingBox2D src)
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| src | BoundingBox2D |
equals(Object obj)
public boolean equals(Object obj)
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| obj | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getExtent()
public BoundingBoxExtent getExtent()
Obtient l’étendue de la boîte englobante.
Returns: BoundingBoxExtent - the extent of the bounding box.
getMaximum()
public Vector2 getMaximum()
Le coin maximum de la boîte englobante
Returns: Vector2 - The maximum corner of the bounding box
getMinimum()
public Vector2 getMinimum()
Le coin minimum de la boîte englobante
Returns: Vector2 - The minimum corner of the bounding box
hashCode()
public int hashCode()
Returns: int
merge(BoundingBox2D bb)
public void merge(BoundingBox2D bb)
Fusionne la nouvelle boîte dans la boîte englobante actuelle.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| bb | BoundingBox2D | La boîte englobante à fusionner |
merge(Vector2 pt)
public void merge(Vector2 pt)
Fusionne la nouvelle boîte dans la boîte englobante actuelle.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| pt | Vector2 | Le point à fusionner |
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
toString()
public String toString()
Obtient la représentation sous forme de chaîne de la boîte englobante.
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| arg0 | long | |
| arg1 | int |