tinypbrt 1.1.1
pbrt-v4 scene file parser for C11 with a header-only C++20 wrapper
Loading...
Searching...
No Matches
tpbrt::camera_perspective_params Struct Reference

C++ wrapper for tpbrt_camera_perspective_params_t. More...

#include <tinypbrt/detail/cpp/camera.hpp>

Public Types

using screen_window_array_type = array< tpbrt_float_t[4], float_t >
 Type used to read screen_window parameter.
 

Public Member Functions

constexpr float_t frame_aspect_ratio () const noexcept
 Returns frame_aspect_ratio value.
 
constexpr screen_window_array_type screen_window () const noexcept
 Returns screen_window value.
 
constexpr float_t lens_radius () const noexcept
 Returns lens_radius value.
 
constexpr float_t focal_distance () const noexcept
 Returns focal_distance value.
 
constexpr float_t fov () const noexcept
 Returns fov value.
 
constexpr auto reflect () const noexcept
 Conversion to tuple.
 

Detailed Description

Member Typedef Documentation

◆ screen_window_array_type

Type used to read screen_window parameter.

Member Function Documentation

◆ frame_aspect_ratio()

constexpr float_t tpbrt::camera_perspective_params::frame_aspect_ratio ( ) const
inlineconstexprnoexcept

Returns frame_aspect_ratio value.

◆ screen_window()

constexpr screen_window_array_type tpbrt::camera_perspective_params::screen_window ( ) const
inlineconstexprnoexcept

Returns screen_window value.

◆ lens_radius()

constexpr float_t tpbrt::camera_perspective_params::lens_radius ( ) const
inlineconstexprnoexcept

Returns lens_radius value.

◆ focal_distance()

constexpr float_t tpbrt::camera_perspective_params::focal_distance ( ) const
inlineconstexprnoexcept

Returns focal_distance value.

◆ fov()

constexpr float_t tpbrt::camera_perspective_params::fov ( ) const
inlineconstexprnoexcept

Returns fov value.

◆ reflect()

constexpr auto tpbrt::camera_perspective_params::reflect ( ) const
inlineconstexprnoexcept

Conversion to tuple.


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