33 NBL = 0, NBR, NTR, NTL,
48 OUTSIDE, INTERSECT, INSIDE
54 void setCamInternals(
float fov,
float aspect,
float zNear,
float zFar)
57 this->aspect = aspect;
63 const Vec3f &getCorner(Corner corner)
const;
64 const Plane &getPlane(FrustumPlane plane)
const;
65 int pointInFrustum(
const Vec3f &p);
66 int boxInFrustum(
const AABB &bbox);
68 void drawFrustum()
const;
69 void saveDrawingCorners();
78 std::vector<Vec3f> drawCorners;
81 std::vector<Vec3f> corners;
82 std::vector<Plane*> planes;
An axis-aligned bounding-box class.