Collision Checker
collision::AABB Class Reference

#include <aabb.h>

Public Member Functions

 AABB (void)
 
 AABB (double x_min, double x_max, double y_min, double y_max)
 
 AABB (const RectangleAABB &aabb_rect)
 
bool collides (const AABB &other)
 
void swapAxes (void)
 

Public Attributes

double x_min
 
double x_max
 
double y_min
 
double y_max
 

Detailed Description

Definition at line 7 of file aabb.h.

Constructor & Destructor Documentation

◆ AABB() [1/3]

collision::AABB::AABB ( void  )
inline

Definition at line 14 of file aabb.h.

◆ AABB() [2/3]

collision::AABB::AABB ( double  x_min,
double  x_max,
double  y_min,
double  y_max 
)
inline

Definition at line 16 of file aabb.h.

◆ AABB() [3/3]

collision::AABB::AABB ( const RectangleAABB aabb_rect)
inline

Definition at line 24 of file aabb.h.

Member Function Documentation

◆ collides()

bool collision::AABB::collides ( const AABB other)

Definition at line 6 of file aabb.cc.

◆ swapAxes()

void collision::AABB::swapAxes ( void  )
inline

Definition at line 33 of file aabb.h.

Member Data Documentation

◆ x_max

double collision::AABB::x_max

Definition at line 10 of file aabb.h.

◆ x_min

double collision::AABB::x_min

Definition at line 9 of file aabb.h.

◆ y_max

double collision::AABB::y_max

Definition at line 12 of file aabb.h.

◆ y_min

double collision::AABB::y_min

Definition at line 11 of file aabb.h.


The documentation for this class was generated from the following files: