9 #ifndef _TurtleBrainsUnstable_BoundingVolume_h_
10 #define _TurtleBrainsUnstable_BoundingVolume_h_
12 #include "../../math/tb_vector.h"
59 bool IsBox(
void)
const;
109 float GetWidth(
void)
const {
tb_error_if(
false ==
IsBox(),
"tbExternalError: This bounding volume is not a box.");
return mWidth; }
Definition: tb_vector.h:47
bool CheckCollisionWith(const tbMath::Vector2 &objectPosition, const tbMath::Vector2 &testPoint) const
bool IsCircle(void) const
Contains objects and functions for dealing with Vector and Matrix math.
float GetRadius(void) const
Definition: tbu_bounding_volume.h:103
float GetWidth(void) const
Definition: tbu_bounding_volume.h:109
Here is some information about the primary namespace.
Definition: tb_application_dialog.h:21
float GetHeight(void) const
Definition: tbu_bounding_volume.h:115
bool ResolveCollisionWithStatic(tbMath::Vector2 &objectPosition, const BoundingVolume &staticVolume, const tbMath::Vector2 &staticVolumePosition) const
Definition: tbu_bounding_volume.h:24
BoundingVolume(float radius)
#define tb_error_if(errorTest, message,...)
Definition: tb_error.h:37