AABB.h
Go to the documentation of this file.
1 // SPDX-License-Identifier: Beerware
7 #pragma once
8 
9 #include <SDL.h>
10 
17 typedef struct AABB_t
18 {
19  double dBottom;
20  double dLeft;
21  double dRight;
22  double dTop;
23 
24 } AABB;
25 
26 SDL_bool AABB_BoxesDoIntersect(const AABB stBoxA, const AABB stBoxB);
Axis-aligned bounding box handle data.
Definition: AABB.h:17
double dLeft
Left edge position.
Definition: AABB.h:20
SDL_bool AABB_BoxesDoIntersect(const AABB stBoxA, const AABB stBoxB)
Check if two axis-aligned bounding boxes intersect.
Definition: AABB.c:26
SDL_bool AABB_BoxesDoIntersect(const AABB stBoxA, const AABB stBoxB)
Check if two axis-aligned bounding boxes intersect.
Definition: AABB.c:26
double dBottom
Bottom edge position.
Definition: AABB.h:19
struct AABB_t AABB
Axis-aligned bounding box handle type.
double dTop
Top edge position.
Definition: AABB.h:22
AABB handler include header.
double dRight
Right edge position.
Definition: AABB.h:21