The Shapes Library
Game Physics with Bespoke Code
Loading...
Searching...
No Matches
AABB.h File Reference

Interface for the AABB class CAabb2D.

#include <windows.h>
#include <windowsx.h>
#include <d3d11_2.h>
#include <dxgi1_3.h>
#include <DirectXMath.h>
#include "SimpleMath.h"
Include dependency graph for AABB.h:
This graph shows which files directly or indirectly include this file:

Classes

class  Shapes::CAabb2D
 2D Axially Aligned Bounding Box. More...
 

Functions

bool Shapes::operator&& (const CAabb2D &, const CAabb2D &)
 AABB intersection test.
 
bool Shapes::operator&& (const CAabb2D &, const Vector2 &)
 AABB intersection test.
 

Function Documentation

◆ operator&&() [1/2]

bool Shapes::operator&& ( const CAabb2D & a,
const CAabb2D & b )

Overloaded && operator to determine whether an AABB overlaps another AABB.

Parameters
aAn AABB.
bAn AABB.
Returns
true if a and b overlap
Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator&&() [2/2]

bool Shapes::operator&& ( const CAabb2D & a,
const Vector2 & p )

Overloaded && operator to determine whether a point is inside an AABB.

Parameters
aAn AABB.
pA point.
Returns
true if p is inside a.
Here is the call graph for this function: