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

C++ wrapper for tpbrt_wavelength_t. More...

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

Public Member Functions

constexpr float_t lambda () const noexcept
 Returns wavelength value.
 
constexpr float_t value () const noexcept
 Returns value value.
 
constexpr auto reflect () const noexcept
 Conversion to tuple.
 

Detailed Description

C++ wrapper for tpbrt_wavelength_t.

Member Function Documentation

◆ lambda()

constexpr float_t tpbrt::wavelength::lambda ( ) const
inlineconstexprnoexcept

Returns wavelength value.

◆ value()

constexpr float_t tpbrt::wavelength::value ( ) const
inlineconstexprnoexcept

Returns value value.

◆ reflect()

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

Conversion to tuple.


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