X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FFrustum.hh;fp=src%2FMoof%2FFrustum.hh;h=0000000000000000000000000000000000000000;hp=5710004c58989115622b779fedfcdfb9096279c3;hb=831f04d4bc19a390415ac0bbac4331c7a65509bc;hpb=299af4f2047e767e5d79501c26444473bda64c64 diff --git a/src/Moof/Frustum.hh b/src/Moof/Frustum.hh deleted file mode 100644 index 5710004..0000000 --- a/src/Moof/Frustum.hh +++ /dev/null @@ -1,60 +0,0 @@ - -/*] Copyright (c) 2009-2010, Charles McGarvey [************************** -**] All rights reserved. -* -* vi:ts=4 sw=4 tw=75 -* -* Distributable under the terms and conditions of the 2-clause BSD license; -* see the file COPYING for a complete text of the license. -* -**************************************************************************/ - -#ifndef _MOOF_FRUSTUM_HH_ -#define _MOOF_FRUSTUM_HH_ - -#include -#include - - -namespace Mf { - - -template class Aabb; -template class Sphere; - -class Frustum -{ - Plane mPlanes[6]; // left, right, bottom, top, near, far - -public: - typedef enum - { - OUTSIDE = 0, - INSIDE = 1, - INTERSECT = 2 - } Collision; - - Frustum() {} - Frustum(const Matrix4& modelview, const Matrix4& projection) - { - init(modelview, projection); - } - Frustum(const Matrix4& modelview, Scalar fovy, Scalar aspect, - Scalar abutting, Scalar distant) - { - init(modelview, fovy, aspect, abutting, distant); - } - - void init(const Matrix4& modelview, const Matrix4& projection); - void init(const Matrix4& modelview, Scalar fovy, Scalar aspect, - Scalar abutting, Scalar distant); - - Collision contains(const Aabb<3>& aabb) const; - Collision contains(const Sphere<3>& sphere) const; -}; - - -} // namespace Mf - -#endif // _MOOF_FRUSTUM_HH_ -