AABB handler source. More...

#include <SDL.h>
#include "AABB.h"
Include dependency graph for AABB.c:

Functions

SDL_bool AABB_BoxesDoIntersect (const AABB stBoxA, const AABB stBoxB)
 Check if two axis-aligned bounding boxes intersect. More...
 

Detailed Description

AABB handler source.

Function Documentation

◆ AABB_BoxesDoIntersect()

SDL_bool AABB_BoxesDoIntersect ( const AABB  stBoxA,
const AABB  stBoxB 
)

Check if two axis-aligned bounding boxes intersect.

Can be used to trigger events e.g. when two entities intersect

Parameters
stBoxABounding box A
stBoxBBounding box B
Returns
Boolean value
Return values
SDL_TRUEBoxes intersect
SDL_FALSEBoxes do not intersect