BoundingBox2D

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.csporter.helpers.Struct, java.io.Serializable

public final class BoundingBox2D implements Struct<BoundingBox2D>, Serializable

The axis-aligned bounding box for Vector2

Constructors

ConstructorDescription
BoundingBox2D(Vector2 minimum, Vector2 maximum)Initialize a finite bounding box with given minimum and maximum corner
BoundingBox2D()

Fields

FieldDescription
INFINITEThe infinite bounding box
NULLThe null bounding box

Methods

MethodDescription
clone()
copyFrom(BoundingBox2D src)
equals(Object obj)
getClass()
getExtent()Gets the extent of the bounding box.
getMaximum()The maximum corner of the bounding box
getMinimum()The minimum corner of the bounding box
hashCode()
merge(BoundingBox2D bb)Merges the new box into the current bounding box.
merge(Vector2 pt)Merges the new box into the current bounding box.
notify()
notifyAll()
toString()Gets the string representation of the bounding box.
wait()
wait(long arg0)
wait(long arg0, int arg1)

BoundingBox2D(Vector2 minimum, Vector2 maximum)

public BoundingBox2D(Vector2 minimum, Vector2 maximum)

Initialize a finite bounding box with given minimum and maximum corner

Parameters:

ParameterTypeDescription
minimumVector2The minimum corner
maximumVector2The maximum corner

BoundingBox2D()

public BoundingBox2D()

INFINITE

public static final BoundingBox2D INFINITE

The infinite bounding box

NULL

public static final BoundingBox2D NULL

The null bounding box

clone()

public BoundingBox2D clone()

Returns: BoundingBox2D

copyFrom(BoundingBox2D src)

public void copyFrom(BoundingBox2D src)

Parameters:

ParameterTypeDescription
srcBoundingBox2D

equals(Object obj)

public boolean equals(Object obj)

Parameters:

ParameterTypeDescription
objjava.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getExtent()

public BoundingBoxExtent getExtent()

Gets the extent of the bounding box.

Returns: BoundingBoxExtent

getMaximum()

public Vector2 getMaximum()

The maximum corner of the bounding box

Returns: Vector2

getMinimum()

public Vector2 getMinimum()

The minimum corner of the bounding box

Returns: Vector2

hashCode()

public int hashCode()

Returns: int

merge(BoundingBox2D bb)

public void merge(BoundingBox2D bb)

Merges the new box into the current bounding box.

Parameters:

ParameterTypeDescription
bbBoundingBox2D

merge(Vector2 pt)

public void merge(Vector2 pt)

Merges the new box into the current bounding box.

Parameters:

ParameterTypeDescription
ptVector2

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

toString()

public String toString()

Gets the string representation of the bounding box.

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int