]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Frustum.hh
cade lab fixes
[chaz/yoink] / src / Moof / Frustum.hh
index 87e654fd12c8c0b4f5cbbe27dcab1152ee954e33..406e2304895db75ea5c519e6e8ec1a0a6685f799 100644 (file)
 namespace Mf {
 
 
-class Aabb;
-class Sphere;
+template <int D> class Aabb;
+template <int D> class Sphere;
 
 class Frustum
 {
-       Plane   planes_[6]; // left, right, bottom, top, near, far
+       Plane   mPlanes[6]; // left, right, bottom, top, near, far
 
 public:
        typedef enum
@@ -66,8 +66,8 @@ public:
        void init(const Matrix4& modelview, Scalar fovy, Scalar aspect,
                        Scalar abutting, Scalar distant);
 
-       Collision contains(const Aabb& aabb) const;
-       Collision contains(const Sphere& sphere) const;
+       Collision contains(const Aabb<3>& aabb) const;
+       Collision contains(const Sphere<3>& sphere) const;
 };
 
 
This page took 0.022432 seconds and 4 git commands to generate.