SLProject 4.0.000
SLFrustum Class Reference

Matrix to 6 frustum plane conversion functions. More...

#include <SLFrustum.h>

Static Public Member Functions

static void viewToFrustumPlanes (SLPlane *planes, const SLMat4f &projectionMat, const SLMat4f &viewMat)
 
static void viewToFrustumPlanes (SLPlane *planes, const SLMat4f &A)
 
static void getPointsInViewSpace (SLVec3f *points, float fovV, float ratio, float clipNear, float clipFar)
 Returns frustum points in view space. More...
 

Detailed Description

Matrix to 6 frustum plane conversion functions.

Member Function Documentation

◆ getPointsInViewSpace()

void SLFrustum::getPointsInViewSpace ( SLVec3f points,
float  fovV,
float  ratio,
float  clipNear,
float  clipFar 
)
static

Returns frustum points in view space.

◆ viewToFrustumPlanes() [1/2]

void SLFrustum::viewToFrustumPlanes ( SLPlane planes,
const SLMat4f A 
)
static

Calculates the coefficients of the 6 frustum planes from the passed matrix A. See the paper from Gribb and Hartmann: https://www.gamedevs.org/uploads/fast-extraction-viewing-frustum-planes-from-world-view-projection-matrix.pdf

Parameters
planesPointer to an array of 6 SLPlanes (L R T B N F)
AThe projection matrix

◆ viewToFrustumPlanes() [2/2]

void SLFrustum::viewToFrustumPlanes ( SLPlane planes,
const SLMat4f projectionMat,
const SLMat4f viewMat 
)
static

Calculates the coefficients of the 6 frustum planes from the passed projection and view matrices. See the paper from Gribb and Hartmann: https://www.gamedevs.org/uploads/fast-extraction-viewing-frustum-planes-from-world-view-projection-matrix.pdf

Parameters
planesPointer to an array of 6 SLPlanes (L R T B N F)
projectionMat4x4 projection matrix
viewMat4x4 view matrix

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