Enums
Public Member Functions
-
FrustumT ()
-
FrustumT (const Camera &cam)
Creates a world space frustum based on the camera's parameters.
-
FrustumT (const Vec3T &ntl, const Vec3T &ntr, const Vec3T &nbl, const Vec3T &nbr, const Vec3T &ftl, const Vec3T &ftr, const Vec3T &fbl, const Vec3T &fbr)
Creates a frustum based on the corners of a near and far portal.
-
FrustumT (const Mat4T &mat)
Creates a frustum based on a (projection) matrix. The six planes of the frustum are derived from the matrix. To create a world space frustum, use a view-projection matrix.
-
voidset (const Camera &cam)
Creates a world space frustum based on the camera's parameters.
-
voidset (const Camera &cam, const Vec3T &ntl, const Vec3T &ntr, const Vec3T &nbl, const Vec3T &nbr)
Creates a world space frustum based on the camera's parameters and four corners of a portal.
-
voidset (const Vec3T &ntl, const Vec3T &ntr, const Vec3T &nbl, const Vec3T &nbr, const Vec3T &ftl, const Vec3T &ftr, const Vec3T &fbl, const Vec3T &fbr)
Creates a frustum based on the corners of a near and far portal.
-
voidset (const Mat4T &mat)
Creates a frustum based on a (projection) matrix. The six planes of the frustum are derived from the matrix. To create a world space frustum, use a view-projection matrix.
-
boolcontains (const Vec3T &loc) const
Returns true if point is within frustum.
-
boolcontains (const Vec3T ¢er, T radius) const
Returns true if the sphere is fully contained within frustum. See also 'intersects'.
-
boolcontains (const Vec3T ¢er, const Vec3T &size) const
Returns true if the box is fully contained within frustum. See also 'intersects'.
-
boolcontains (const Sphere &sphere) const
Returns true if the sphere is fully contained within frustum. See also 'intersects'.
-
boolcontains (const AxisAlignedBox &box) const
Returns true if the box is fully contained within frustum. See also 'intersects'.
-
boolintersects (const Vec3T &loc) const
Returns true if point is within frustum.
-
boolintersects (const Vec3T ¢er, T radius) const
Returns true if the sphere is fully or partially contained within frustum. See also 'contains'.
-
boolintersects (const Vec3T ¢er, const Vec3T &size) const
Returns true if the box is fully or partially contained within frustum. See also 'contains'.
-
boolintersects (const Sphere &sphere) const
Returns true if the sphere is fully or partially contained within frustum. See also 'contains'.
-
boolintersects (const AxisAlignedBox &box) const
Returns true if the box is fully or partially contained within frustum. See also 'contains'.
-
const PlaneT< T > &getPlane (FrustumSection section) const
Returns a const reference to the Plane associated with /a section of the Frustum.
Protected Attributes
-
PlaneT< T >mFrustumPlanes [6]