Ult3D
Implementation of "Ultimate 3D Game Engine Design & Architecture" by Allan Sherrod
Loading...
Searching...
No Matches
BoundingBox.h
Go to the documentation of this file.
1#ifndef ULT_MATH_BOUNDINGBOX_H_INCLUDED
2#define ULT_MATH_BOUNDINGBOX_H_INCLUDED
3
4#include <Ult/Math/Vector3D.h>
5
6namespace Ult
7{
8
12
18{
19public:
27 BoundingBox(const BoundingBox& aabb);
28
32 void Calculate(const Vector3D* v, const int numPoints);
36 void Expand(const float amt);
37
41 void Translate(const Vector3D& v);
42
46 bool CollisionCheck(const BoundingBox& aabb);
50 bool CollisionCheck(const Vector3D& v);
51
56 mMin = b.mMin;
57 mMax = b.mMax;
58 mCenter = b.mCenter;
59 return *this;
60 }
61
68};
69
70} // namespace Ult
71
72#endif // ULT_MATH_BOUNDINGBOX_H_INCLUDED
73
void Calculate(const Vector3D *v, const int numPoints)
Definition BoundingBox.cpp:14
BoundingBox & operator=(const BoundingBox &b)
Definition BoundingBox.h:55
bool CollisionCheck(const BoundingBox &aabb)
Definition BoundingBox.cpp:48
BoundingBox()
Definition BoundingBox.cpp:6
void Expand(const float amt)
Definition BoundingBox.cpp:31
Vector3D mCenter
Definition BoundingBox.h:67
void Translate(const Vector3D &v)
Definition BoundingBox.cpp:41
Vector3D mMax
Definition BoundingBox.h:65
Vector3D mMin
Definition BoundingBox.h:63
Definition Vector3D.h:12
Definition Archive.h:13