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

ConstructeurDescription
BoundingBox2D(Vector2 minimum, Vector2 maximum)Initialiser une boîte englobante finie avec les coins minimum et maximum donnés
BoundingBox2D()

Champs

ChampDescription
INFINITELa boîte englobante infinie
NULLLa boîte englobante nulle

Méthodes

MéthodeDescription
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ètreTypeDescription
minimumVector2Le coin minimum
maximumVector2Le 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ètreTypeDescription
srcBoundingBox2D

equals(Object obj)

public boolean equals(Object obj)

Parameters:

ParamètreTypeDescription
objjava.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ètreTypeDescription
bbBoundingBox2DLa 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ètreTypeDescription
ptVector2Le 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ètreTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParamètreTypeDescription
arg0long
arg1int