|
Avara3D 0.2.0
C++ API reference
|
Camera using a perspective projection with a vertical field of view. More...
#include <a3d/visual/camera/PerspectiveCamera.h>
Public Member Functions | |
| PerspectiveCamera () | |
| Creates an unnamed camera with a 0.1 near plane, 1000 far plane, and 45-degree vertical FOV. More... | |
| PerspectiveCamera (float zNear, float zFar, float yFov) | |
| Creates an unnamed perspective camera with the supplied clipping distances and vertical FOV. More... | |
| PerspectiveCamera (const std::string &name, float zNear, float zFar, float yFov) | |
| Creates a named perspective camera with the supplied clipping distances and vertical FOV. More... | |
| float | zNear () const |
| Returns the near clipping distance. More... | |
| void | zNear (float zNear) |
| Sets the near clipping distance. More... | |
| float | zFar () const |
| Returns the far clipping distance. More... | |
| void | zFar (float zFar) |
| Sets the far clipping distance. More... | |
| float | yFov () const |
| Returns the vertical field of view in radians. More... | |
| void | yFov (float fov) |
| Sets the vertical field of view in radians. More... | |
Public Member Functions inherited from a3d::Camera | |
| Camera () | |
| Creates an unnamed Camera. More... | |
| Camera (const std::string &name) | |
Creates a Camera with name. More... | |
| const std::optional< std::string > & | name () const |
| Returns the optional camera name. More... | |
| void | name (const std::string &name) |
| Sets the camera name. More... | |
Camera using a perspective projection with a vertical field of view.
Definition at line 18 of file PerspectiveCamera.h.
| a3d::PerspectiveCamera::PerspectiveCamera | ( | ) |
Creates an unnamed camera with a 0.1 near plane, 1000 far plane, and 45-degree vertical FOV.
| a3d::PerspectiveCamera::PerspectiveCamera | ( | float | zNear, |
| float | zFar, | ||
| float | yFov | ||
| ) |
Creates an unnamed perspective camera with the supplied clipping distances and vertical FOV.
| a3d::PerspectiveCamera::PerspectiveCamera | ( | const std::string & | name, |
| float | zNear, | ||
| float | zFar, | ||
| float | yFov | ||
| ) |
Creates a named perspective camera with the supplied clipping distances and vertical FOV.
| float a3d::PerspectiveCamera::yFov | ( | ) | const |
Returns the vertical field of view in radians.
| void a3d::PerspectiveCamera::yFov | ( | float | fov | ) |
Sets the vertical field of view in radians.
| float a3d::PerspectiveCamera::zFar | ( | ) | const |
Returns the far clipping distance.
| void a3d::PerspectiveCamera::zFar | ( | float | zFar | ) |
Sets the far clipping distance.
| float a3d::PerspectiveCamera::zNear | ( | ) | const |
Returns the near clipping distance.
| void a3d::PerspectiveCamera::zNear | ( | float | zNear | ) |
Sets the near clipping distance.