X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FAabb.hh;fp=src%2Faabb.hh;h=f66fb24fe6595f60d76a25f9498d38596aabe6c4;hp=e608b21a9450d7ac6ebb8490c9fdf673e3829483;hb=c2321281bf12a7efaedde930422c7ddbc92080d4;hpb=87bc17e55b0c1dc73ecc66df856d3f08fd7a7724 diff --git a/src/aabb.hh b/src/Moof/Aabb.hh similarity index 84% rename from src/aabb.hh rename to src/Moof/Aabb.hh index e608b21..f66fb24 100644 --- a/src/aabb.hh +++ b/src/Moof/Aabb.hh @@ -26,40 +26,40 @@ ******************************************************************************/ -#ifndef _AABB_HH_ -#define _AABB_HH_ +#ifndef _MOOF_AABB_HH_ +#define _MOOF_AABB_HH_ -#include "math.hh" +#include -namespace dc { +namespace Mf { /** * Axis-aligned Bounding Box */ -struct aabb +struct Aabb { - aabb() {} + Aabb() {} - aabb(const vector3& minPoint, const vector3& maxPoint) : + Aabb(const Vector3& minPoint, const Vector3& maxPoint) : min(minPoint), max(maxPoint) {} - aabb (scalar minX, scalar minY, scalar minZ, - scalar maxX, scalar maxY, scalar maxZ) : + Aabb (Scalar minX, Scalar minY, Scalar minZ, + Scalar maxX, Scalar maxY, Scalar maxZ) : min(minX, minY, minZ), max(maxX, maxY, maxZ) {} - vector3 min; - vector3 max; + Vector3 min; + Vector3 max; }; -} // namespace dc +} // namespace Mf -#endif // _AABB_HH_ +#endif // _MOOF_AABB_HH_ /** vim: set ts=4 sw=4 tw=80: *************************************************/