A view frustum used with camera.
More...
#include <NRE_Frustum.hpp>
A view frustum used with camera.
NRE::Math::Frustum::Frustum |
( |
| ) |
|
|
delete |
NRE::Math::Frustum::Frustum |
( |
Angle |
fieldOfView, |
|
|
float |
r, |
|
|
Vector2D< float > const & |
d |
|
) |
| |
Construct a frustum with his fov, his ratio and the distance vector
- Parameters
-
fieldOfView | the frustum's fov |
r | the frustum's ratio |
d | the frustum's distance |
NRE::Math::Frustum::Frustum |
( |
Frustum const & |
f | ) |
|
|
default |
Copy f into this
- Parameters
-
NRE::Math::Frustum::Frustum |
( |
Frustum && |
f | ) |
|
|
default |
Move f into this
- Parameters
-
NRE::Math::Frustum::~Frustum |
( |
| ) |
|
|
default |
void NRE::Math::Frustum::computePlane |
( |
Point3D< float > const & |
eye, |
|
|
Vector3D< float > const & |
forward, |
|
|
Vector3D< float > const & |
left, |
|
|
Vector3D< float > const & |
up |
|
) |
| |
Compute the frustum's planes according to the given vectors
- Parameters
-
eye | the eye's position |
forward | the forward vector |
left | the left vector |
up | the up vector |
void NRE::Math::Frustum::computeProjectionMatrix |
( |
Matrix4x4< float > & |
m | ) |
|
Perform a perspective projection on m
- Parameters
-
Plane<float> const& NRE::Math::Frustum::getPlane |
( |
std::size_t |
index | ) |
const |
Query a specific plane
- Parameters
-
- Returns
- the corresponding plane
Copy f into this
- Parameters
-
f | the object to copy into this |
- Returns
- the reference of himself
Move f into this
- Parameters
-
f | the object to move into this |
- Returns
- the reference of himself
void NRE::Math::Frustum::resize |
( |
Vector2D< std::size_t > const & |
size, |
|
|
Point3D< float > const & |
eye, |
|
|
Vector3D< float > const & |
forward, |
|
|
Vector3D< float > const & |
left, |
|
|
Vector3D< float > const & |
up |
|
) |
| |
Resize the frustum according to the given vector
- Parameters
-
size | the screen's size |
eye | the eye's position |
forward | the forward vector |
left | the left vector |
up | the up vector |
void NRE::Math::Frustum::setFov |
( |
Angle |
fieldOfView | ) |
|
Set the frustum field of view
- Parameters
-
Utility::String NRE::Math::Frustum::toString |
( |
| ) |
const |
Convert the frustum into a string
- Returns
- the converted frustum
The documentation for this class was generated from the following file:
- /mnt/c/Users/abell/Documents/GitHub/NRE-Math/src/Math/Frustum/NRE_Frustum.hpp