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
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;
};