]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Frustum.hh
the massive refactoring effort
[chaz/yoink] / src / Moof / Frustum.hh
diff --git a/src/Moof/Frustum.hh b/src/Moof/Frustum.hh
deleted file mode 100644 (file)
index 5710004..0000000
+++ /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 <Moof/Math.hh>
-#include <Moof/Plane.hh>
-
-
-namespace Mf {
-
-
-template <int D> class Aabb;
-template <int D> 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_
-
This page took 0.017765 seconds and 4 git commands to generate.