ackb2d 0.9
3D Gamestudio Box 2d Wraper

b2AABB.h File Reference

Go to the source code of this file.

Functions

b2AABBb2AABB_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

void b2AABB_Combine ( b2AABB aabb,
const b2AABB aabb1,
const b2AABB aabb2 
)

Combine two AABBs into this one.

Parameters:
aabbb2AABB instance.
aabb1second b2AABB instance to combine with the first b2AABB into the first.
aabb2third b2AABB instance to combine with the second into the first.
var b2AABB_Contains ( b2AABB aabb,
const b2AABB aabb1 
)

Does this aabb contain the provided AABB.

Parameters:
aabbb2AABB instance.
aabb1b2AABB instance to be tested if contained inside the first.
b2AABB* b2AABB_Create ( )

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:
aabbb2AABB instance to delete.
void b2AABB_GetCenter ( b2AABB aabb,
VECTOR *  outCenter 
)

Get the center of the AABB.

Parameters:
aabbb2AABB instance.
outCenterpre allocated VECTOR struct to receive the b2AABB center.
void b2AABB_GetExtents ( b2AABB aabb,
VECTOR *  outExtents 
)

Get the extents of the AABB (half-widths).

Parameters:
aabbb2AABB instance.
outExtentspre-allocated VECTOR struct to receive th b2AABB extents.
void b2AABB_GetLowerBound ( b2AABB aabb,
VECTOR *  outLowerBound 
)

Get LowerBound Vector.

Parameters:
aabbb2AABB instance.
outLowerBoundA pre initialized VECTOR struct to receive the b2AABB actual lower bound
void b2AABB_GetUpperBound ( b2AABB aabb,
VECTOR *  outUpperBound 
)

Get UpperBound Vector.

Parameters:
aabbb2AABB instance.
outLowerBoundA pre initialized VECTOR struct to receive the b2AABB actual upper bound
var b2AABB_IsValid ( b2AABB aabb)

Verify that the bounds are sorted.

Parameters:
aabbb2AABB instance.
var b2AABB_RayCast ( b2AABB aabb,
b2RayCastOutput output,
const b2RayCastInput input 
)

b2AABB RayCast

Do RayCast test with the b2AABB, depending on the b2RayCastInput input. The result will be stored in the output b2RayCastOutput struct.

Parameters:
aabbb2AABB instance.
outputA pre allocated b2RayCastOutput instance to receive the result.
inputb2RayCastInput instance, containing the test parameters.
void b2AABB_SetLowerBound ( b2AABB aabb,
const VECTOR *  lowerBound 
)

Set LowerBound Vector.

Parameters:
aabbb2AABB instance.
lowerBoundThe desired lower bound.
void b2AABB_SetUpperBound ( b2AABB aabb,
const VECTOR *  upperBound 
)

Set UpperBound Vector.

Parameters:
aabbb2AABB instance.
lowerBoundThe desired upper bound.
 All Data Structures Files Functions Variables Typedefs Defines