9 #ifndef _TurtleBrainsUnstable_BoundingVolume_hpp
10 #define _TurtleBrainsUnstable_BoundingVolume_hpp
12 #include <turtle_brains/math/tb_vector.hpp>
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.hpp:48
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.hpp:103
float GetWidth(void) const
Definition: tbu_bounding_volume.hpp:109
Here is some information about the primary namespace.
Definition: tb_application_dialog.hpp:21
float GetHeight(void) const
Definition: tbu_bounding_volume.hpp:115
bool ResolveCollisionWithStatic(tbMath::Vector2 &objectPosition, const BoundingVolume &staticVolume, const tbMath::Vector2 &staticVolumePosition) const
Definition: tbu_bounding_volume.hpp:24
BoundingVolume(float radius)
#define tb_error_if(errorTest, message,...)
Definition: tb_error.hpp:42