VOX
A little voxel engine
Loading...
Searching...
No Matches
ViewFrustum Class Reference

#include <Camera.hpp>

Collaboration diagram for ViewFrustum:
Collaboration graph

Public Member Functions

 ViewFrustum (const glm::dvec3 &pos, const glm::dvec3 &front, const glm::dvec3 &up, const double fov, const double ratio, const double nearD, const double farD)
 
bool sphereInFrustum (const glm::dvec3 &center, double radius) const
 

Public Attributes

glm::dvec3 nbr
 
glm::dvec3 nbl
 
glm::dvec3 ntr
 
glm::dvec3 ntl
 
glm::dvec3 fbr
 
glm::dvec3 fbl
 
glm::dvec3 ftr
 
glm::dvec3 ftl
 

Constructor & Destructor Documentation

◆ ViewFrustum()

ViewFrustum::ViewFrustum ( const glm::dvec3 &  pos,
const glm::dvec3 &  front,
const glm::dvec3 &  up,
const double  fov,
const double  ratio,
const double  nearD,
const double  farD 
)

Member Function Documentation

◆ sphereInFrustum()

bool ViewFrustum::sphereInFrustum ( const glm::dvec3 &  center,
double  radius 
) const

Member Data Documentation

◆ fbl

glm::dvec3 ViewFrustum::fbl

◆ fbr

glm::dvec3 ViewFrustum::fbr

◆ ftl

glm::dvec3 ViewFrustum::ftl

◆ ftr

glm::dvec3 ViewFrustum::ftr

◆ nbl

glm::dvec3 ViewFrustum::nbl

◆ nbr

glm::dvec3 ViewFrustum::nbr

◆ ntl

glm::dvec3 ViewFrustum::ntl

◆ ntr

glm::dvec3 ViewFrustum::ntr

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