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

C++ wrapper for tpbrt_blackbody_t (a separate type, so a blackbody spectrum is not confused with a constant one when visiting the spectrum variant - in C both are tpbrt_float_t). More...

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

Public Member Functions

constexpr float_t temperature () const noexcept
 Returns blackbody temperature in Kelvin.
 
constexpr auto reflect () const noexcept
 Conversion to tuple.
 

Detailed Description

C++ wrapper for tpbrt_blackbody_t (a separate type, so a blackbody spectrum is not confused with a constant one when visiting the spectrum variant - in C both are tpbrt_float_t).

Member Function Documentation

◆ temperature()

constexpr float_t tpbrt::blackbody::temperature ( ) const
inlineconstexprnoexcept

Returns blackbody temperature in Kelvin.

◆ reflect()

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

Conversion to tuple.


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