#include <hikogui/geometry/perspective.hpp>
|
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() [1/2]
hi::v1::perspective::perspective |
( |
float | fov_y, |
|
|
float | aspect_ratio, |
|
|
float | znear, |
|
|
float | zfar ) |
|
inlinenoexcept |
Create a right-handed perspective transform.
- Note
- : This makes a right handed perspective matrix, where the near and far plane are clamped between 1.0 and 0.0
- Parameters
-
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. |
◆ perspective() [2/2]
hi::v1::perspective::perspective |
( |
float | fov_y, |
|
|
extent2 | view_port, |
|
|
float | znear, |
|
|
float | zfar ) |
|
inlinenoexcept |
Create a right-handed perspective transform.
- Note
- : This makes a right handed perspective matrix, where the near and far plane are clamped between 1.0 and 0.0
- Parameters
-
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. |
The documentation for this class was generated from the following file: