Simulant  21.12-553
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
Public Member Functions | List of all members
smlt::Frustum Class Reference

Public Member Functions

void build (const Mat4 *modelview_projection)
 
std::vector< Vec3near_corners () const
 Returns the near 4 corners of the frustum.
 
std::vector< Vec3far_corners () const
 Returns the far 4 corners of the frustum.
 
bool contains_point (const Vec3 &point) const
 Returns true if the frustum contains point.
 
bool intersects_sphere (const Vec3 &pos, const float diameter)
 
bool intersects_aabb (const AABB &box) const
 
bool intersects_cube (const Vec3 &centre, float size) const
 
bool initialized () const
 
float near_height () const
 
float far_height () const
 
float near_width () const
 
float far_width () const
 
float depth () const
 
Plane plane (FrustumPlane p) const
 
Vec3 direction () const
 
Vec3 up () const
 
Vec3 right () const
 
float width_at_distance (float distance) const
 
float height_at_distance (float distance) const
 
Degrees field_of_view () const
 
float aspect_ratio () const
 

The documentation for this class was generated from the following files: