HikoGUI
Select Version: ⚠️ This documents the main development branch of HikoGUI. It might differ from release versions.
A low latency retained GUI
|
#include <hikogui/geometry/perspective.hpp>
Public Member Functions | |
constexpr | perspective (perspective const &) noexcept=default |
constexpr | perspective (perspective &&) noexcept=default |
constexpr perspective & | operator= (perspective const &) noexcept=default |
constexpr perspective & | operator= (perspective &&) noexcept=default |
perspective (float fov_y, float aspect_ratio, float znear, float zfar) noexcept | |
Create a right-handed perspective transform. | |
perspective (float fov_y, extent2 view_port, float znear, float zfar) noexcept | |
Create a right-handed perspective transform. | |
constexpr | operator matrix3 () noexcept |
Perspective transform.
|
inlinenoexcept |
Create a right-handed perspective transform.
fov_y | The field of view from the eye to the height of the view in radians. |
aspect_ratio | The view-port. |
znear | The distance from the camera to the near plane. |
zfar | The distance from the camera to the far plane. |
|
inlinenoexcept |
Create a right-handed perspective transform.
fov_y | The field of view from the eye to the height of the view in radians. |
view_port | The size of the view port. |
znear | The distance from the camera to the near plane. |
zfar | The distance from the camera to the far plane. |