Go to the source code of this file.
Functions |
b2AABB * | b2AABB_Create () |
| Create b2AABB instance.
|
void | b2AABB_Destroy (b2AABB *aabb) |
| Delete b2AABB instance.
|
var | b2AABB_IsValid (b2AABB *aabb) |
| Verify that the bounds are sorted.
|
void | b2AABB_GetCenter (b2AABB *aabb, VECTOR *outCenter) |
| Get the center of the AABB.
|
void | b2AABB_GetExtents (b2AABB *aabb, VECTOR *outExtents) |
| Get the extents of the AABB (half-widths).
|
void | b2AABB_Combine (b2AABB *aabb, const b2AABB *aabb1, const b2AABB *aabb2) |
| Combine two AABBs into this one.
|
var | b2AABB_Contains (b2AABB *aabb, const b2AABB *aabb1) |
| Does this aabb contain the provided AABB.
|
var | b2AABB_RayCast (b2AABB *aabb, b2RayCastOutput *output, const b2RayCastInput *input) |
| b2AABB RayCast
|
void | b2AABB_SetLowerBound (b2AABB *aabb, const VECTOR *lowerBound) |
| Set LowerBound Vector.
|
void | b2AABB_GetLowerBound (b2AABB *aabb, VECTOR *outLowerBound) |
| Get LowerBound Vector.
|
void | b2AABB_SetUpperBound (b2AABB *aabb, const VECTOR *upperBound) |
| Set UpperBound Vector.
|
void | b2AABB_GetUpperBound (b2AABB *aabb, VECTOR *outUpperBound) |
| Get UpperBound Vector.
|
Function Documentation
Combine two AABBs into this one.
- Parameters:
-
aabb | b2AABB instance. |
aabb1 | second b2AABB instance to combine with the first b2AABB into the first. |
aabb2 | third b2AABB instance to combine with the second into the first. |
Does this aabb contain the provided AABB.
- Parameters:
-
aabb | b2AABB instance. |
aabb1 | b2AABB instance to be tested if contained inside the first. |
Create b2AABB instance.
- Returns:
- b2AABB instance that can be used with box2D functions that expect b2AABB instance.
void b2AABB_Destroy |
( |
b2AABB * |
aabb | ) |
|
Delete b2AABB instance.
- Parameters:
-
aabb | b2AABB instance to delete. |
void b2AABB_GetCenter |
( |
b2AABB * |
aabb, |
|
|
VECTOR * |
outCenter |
|
) |
| |
Get the center of the AABB.
- Parameters:
-
aabb | b2AABB instance. |
outCenter | pre allocated VECTOR struct to receive the b2AABB center. |
void b2AABB_GetExtents |
( |
b2AABB * |
aabb, |
|
|
VECTOR * |
outExtents |
|
) |
| |
Get the extents of the AABB (half-widths).
- Parameters:
-
aabb | b2AABB instance. |
outExtents | pre-allocated VECTOR struct to receive th b2AABB extents. |
void b2AABB_GetLowerBound |
( |
b2AABB * |
aabb, |
|
|
VECTOR * |
outLowerBound |
|
) |
| |
Get LowerBound Vector.
- Parameters:
-
aabb | b2AABB instance. |
outLowerBound | A pre initialized VECTOR struct to receive the b2AABB actual lower bound |
void b2AABB_GetUpperBound |
( |
b2AABB * |
aabb, |
|
|
VECTOR * |
outUpperBound |
|
) |
| |
Get UpperBound Vector.
- Parameters:
-
aabb | b2AABB instance. |
outLowerBound | A pre initialized VECTOR struct to receive the b2AABB actual upper bound |
var b2AABB_IsValid |
( |
b2AABB * |
aabb | ) |
|
Verify that the bounds are sorted.
- Parameters:
-
void b2AABB_SetLowerBound |
( |
b2AABB * |
aabb, |
|
|
const VECTOR * |
lowerBound |
|
) |
| |
Set LowerBound Vector.
- Parameters:
-
aabb | b2AABB instance. |
lowerBound | The desired lower bound. |
void b2AABB_SetUpperBound |
( |
b2AABB * |
aabb, |
|
|
const VECTOR * |
upperBound |
|
) |
| |
Set UpperBound Vector.
- Parameters:
-
aabb | b2AABB instance. |
lowerBound | The desired upper bound. |