SLProject
4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
z
Functions
a
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
z
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
Enumerator
c
d
e
f
h
i
k
l
m
n
r
s
t
Properties
Related Functions
Files
File List
File Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
Functions
b
c
e
f
g
i
j
m
o
p
r
s
t
u
v
w
y
Variables
a
b
c
d
e
f
g
h
i
l
m
n
p
r
s
t
v
w
Typedefs
a
c
h
j
o
s
t
Enumerations
a
c
d
e
h
s
t
w
Enumerator
a
b
c
d
e
f
h
i
k
l
m
n
p
r
s
t
u
v
Macros
a
b
e
f
g
i
l
m
o
p
s
t
u
w
SLFrustum.h
Go to the documentation of this file.
1
/**
2
* \file SLFrustum.h
3
* \authors Luc Girod
4
* \date Summer 2021
5
* \copyright http://opensource.org/licenses/GPL-3.0
6
* \remarks Please use clangformat to format the code. See more code style on
7
* https://github.com/cpvrlab/SLProject4/wiki/SLProject-Coding-Style
8
*/
9
10
#ifndef SLFRUSTUM
11
#define SLFRUSTUM
12
13
//-----------------------------------------------------------------------------
14
//! Matrix to 6 frustum plane conversion functions
15
class
SLFrustum
16
{
17
public
:
18
static
void
viewToFrustumPlanes
(
SLPlane
* planes,
19
const
SLMat4f
& projectionMat,
20
const
SLMat4f
& viewMat);
21
static
void
viewToFrustumPlanes
(
SLPlane
* planes,
22
const
SLMat4f
& A);
23
static
void
getPointsInViewSpace
(
SLVec3f
* points,
24
float
fovV,
25
float
ratio,
26
float
clipNear,
27
float
clipFar);
28
};
29
//-----------------------------------------------------------------------------
30
#endif
SLFrustum
Matrix to 6 frustum plane conversion functions.
Definition:
SLFrustum.h:16
SLFrustum::viewToFrustumPlanes
static void viewToFrustumPlanes(SLPlane *planes, const SLMat4f &projectionMat, const SLMat4f &viewMat)
Definition:
SLFrustum.cpp:24
SLFrustum::getPointsInViewSpace
static void getPointsInViewSpace(SLVec3f *points, float fovV, float ratio, float clipNear, float clipFar)
Returns frustum points in view space.
Definition:
SLFrustum.cpp:73
SLMat4< SLfloat >
SLPlane
Defines a plane in 3D space with the equation ax + by + cy + d = 0.
Definition:
SLPlane.h:25
SLVec3< SLfloat >
modules
sl
source
math
SLFrustum.h
Generated by
1.9.1