LibCapy - collisionDetection

Collision detection between geometries.

Macros:

Enumerations:

None.

Typedefs:

None.

Struct CapyCollisionDetection :

Struct CapyCollisionDetection's properties:

None.

Struct CapyCollisionDetection's methods:

Destructor

Check if a point collides with a circle.

Input argument(s):

point: the point
circle: the circle

Output and side effect(s):

Return true if there is collision, else false.

Check if a circle collides with a circle.

Input argument(s):

circleA: the first circle
circleB: the second circle

Output and side effect(s):

Return true if there is collision, else false.

Check if a point collides with a rectangle.

Input argument(s):

point: the point
rect: the rectangle

Output and side effect(s):

Return true if there is collision, else false.

Check if a rectangle collides with a rectangle.

Input argument(s):

rectA: the first rectangle
rectB: the second rectangle

Output and side effect(s):

Return true if there is collision, else false.

Functions:

Create a CapyCollisionDetection

Output and side effect(s):

Return a CapyCollisionDetection

Allocate memory for a new CapyCollisionDetection and create it

Output and side effect(s):

Return a CapyCollisionDetection

Exception(s):

May raise CapyExc_MallocFailed.

Free the memory used by a CapyCollisionDetection* and reset '*that' to NULL

Input argument(s):

that: a pointer to the CapyCollisionDetection to free

2023-11-29
in LibCapy,
23 views
Copyright 2021-2024 Baillehache Pascal