HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions
hi::v1::perspective Class Reference

#include <hikogui/geometry/perspective.hpp>

Public Member Functions

constexpr perspective (perspective const &) noexcept=default
 
constexpr perspective (perspective &&) noexcept=default
 
constexpr perspectiveoperator= (perspective const &) noexcept=default
 
constexpr perspectiveoperator= (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
 

Detailed Description

Perspective transform.

Constructor & Destructor Documentation

◆ 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_yThe field of view from the eye to the height of the view in radians.
aspect_ratioThe view-port.
znearThe distance from the camera to the near plane.
zfarThe 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_yThe field of view from the eye to the height of the view in radians.
view_portThe size of the view port.
znearThe distance from the camera to the near plane.
zfarThe distance from the camera to the far plane.

The documentation for this class was generated from the following file: