Class: AabbBVFactory

Grape2D. AabbBVFactory

new AabbBVFactory()

Creates bounding volumes based in an input object.
Source:

Members

<private, static> PLACE_HOLDER :Grape2D.AABB

Static palce holder for Grape2D.AabbBVFactory.getPlaceHolder
Type:
Source:

Methods

createFromAABB()

Source:

createFromCircle()

Source:

createFromPolygon()

Source:

createSceneBV()

Source:

getPlaceHolder()

Source:

merge(aabb1, aabb2) → {Grape2D.AABB}

Merge two AABBs into one, so that the one created bounds the other two.
Parameters:
Name Type Description
aabb1 Grape2D.AABB An AABB.
aabb2 Grape2D.AABB Another AABB.
Source:
Returns:
An AABB that bounds the other two.
Type
Grape2D.AABB