SaturnRingLibrary 0.9.1
SGL wrapper
 
Loading...
Searching...
No Matches

◆ Frustum()

SRL::Math::Types::Frustum::Frustum ( const Angle & verticalFov,
const Fxp & aspectRatio,
const Fxp & nearDist,
const Fxp & farDist )
inline

Constructs a view frustum.

Parameters
verticalFovVertical field of view in radians (use Angle class)
aspectRatioWidth/height ratio of the viewport
nearDistDistance to near clipping plane (must be > 0)
farDistDistance to far clipping plane (must be > nearDist)
Note
FOV is the full angle, so tan(fov/2) is used for calculations