-
createBV()
-
- Source:
-
getHalfHeight() → {number}
-
Gets the half height (height/2) of the AABB.
- Source:
Returns:
Half height of the AABB.
-
Type
-
number
-
getHalfWidth() → {number}
-
Gets the half width (width/2) of the AABB.
- Source:
Returns:
Half width of the AABB.
-
Type
-
number
-
getHeight() → {number}
-
Gets the height of the AABB.
- Source:
Returns:
The height of the AABB.
-
Type
-
number
-
-
Gets the bottom right corner coordinates of the AABB.
- Source:
Returns:
Bottom right corner.
-
Type
-
Grape2D.Vector
-
getMaxX() → {number}
-
Gets the maximum x coordinate of the AABB.
- Source:
Returns:
Maximum x coordinate.
-
Type
-
number
-
getMaxY() → {number}
-
Gets the maximum y coordinate of the AABB.
- Source:
Returns:
Maximum y coordinate.
-
Type
-
number
-
-
Gets the top left corner coordinates of the AABB.
- Source:
Returns:
Top left corner.
-
Type
-
Grape2D.Vector
-
getMinX() → {number}
-
Gets the minimum x coordinate of the AABB.
- Source:
Returns:
Minimum x coordinate.
-
Type
-
number
-
getMinY() → {number}
-
Gets the minimum y coordinate of the AABB.
- Source:
Returns:
Minimum y coordinate.
-
Type
-
number
-
-
Gets the position of the object.
- Inherited From:
- Source:
Returns:
The center position of the shape.
-
Type
-
Grape2D.Vector
-
getStaticType()
-
- Source:
-
getWidth() → {number}
-
Gets the width of the AABB.
- Source:
Returns:
The width of the AABB.
-
Type
-
number
-
render()
-
- Source:
-
setHeight(height)
-
Sets the height of the AABB.
Parameters:
Name |
Type |
Description |
height |
number
|
The height of the AABB. |
- Source:
-
setPosition()
-
- Source:
-
setWidth(width)
-
Sets the width of the AABB.
Parameters:
Name |
Type |
Description |
width |
number
|
The width of the AABB. |
- Source: