wavepacket-lib/lib/geometry/frustum.h File Reference

#include "plane.h"
Include dependency graph for wavepacket-lib/lib/geometry/frustum.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


struct  frustum_t
 Basic frustum object. More...


bool createViewFrustum (const point3d_t &position, const point3d_t &facing, const point3d_t &up, float fovyRadians, float zNear, float zFar, float aspect, frustum_t &frustum) throw ()
 create a view frustum given basic geometric information.

Function Documentation

bool createViewFrustum ( const point3d_t position,
const point3d_t facing,
const point3d_t up,
float  fovyRadians,
float  zNear,
float  zFar,
float  aspect,
frustum_t frustum 
) throw ()

create a view frustum given basic geometric information.

Keep in mind, this uses standard OpenGL right-handed coordinates, with Y being the usual up direction, and x and z in the plane of the ground.

fovyRadians field of view, Y

Definition at line 219 of file wavepacket-lib/lib/geometry/frustum.cpp.