Easy3D 2.5.3
Frustum Class Reference

A Frustum description for perspective projection. More...

#include <easy3d/renderer/frustum.h>

Public Types

enum  ProjectionType { PERSPECTIVE , ORTHO }
 

Public Member Functions

 Frustum (ProjectionType type)
 
void orient (const vec3 &pos, const vec3 &at, const vec3 &up)
 
void set_perspective (float fovy, float aspect, float znear, float zfar)
 
void set_frustum (float frustum_width, float frustum_height, float znear, float zfar)
 
void set_ortho (float xmin, float xmax, float ymin, float ymax, float znear, float zfar)
 
mat4 view_matrix () const
 
mat4 projection_matrix () const
 
vec3 near_center () const
 
vec3 far_center () const
 
float near_width () const
 
float near_height () const
 
float far_width () const
 
float far_height () const
 
const vec3position () const
 
vec3 up_vector () const
 
vec3 right_vector () const
 
float near_distance () const
 
float far_distance () const
 
std::vector< vec3vertices () const
 

Detailed Description

A Frustum description for perspective projection.


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