Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
constant.h File Reference
#include <cstddef>
#include <cstdint>

Go to the source code of this file.

Namespaces

namespace  ph
 The root for all renderer implementations.
 
namespace  ph::math
 Math functions and utilities.
 
namespace  ph::math::constant
 

Variables

template<typename T >
constexprph::math::constant::pi
 Value of \( \pi \).
 
template<typename T >
constexprph::math::constant::rcp_pi
 Value of \( 1/\pi \).
 
template<typename T >
constexprph::math::constant::two_pi
 Value of \( 2\pi \).
 
template<typename T >
constexprph::math::constant::rcp_two_pi
 Value of \( 1/(2\pi) \).
 
template<typename T >
constexprph::math::constant::four_pi
 Value of \( 4\pi \).
 
template<typename T >
constexprph::math::constant::rcp_four_pi
 Value of \( 1/(4\pi) \).
 
template<typename T >
constexprph::math::constant::pi2
 Value of \( \pi^2 \).
 
template<typename T >
constexprph::math::constant::sqrt_2
 Value of \( \sqrt{2} \).
 
template<typename T >
constexprph::math::constant::rcp_sqrt_2
 Value of \( 1/\sqrt{2} \).
 
template<typename T >
constexprph::math::constant::h_Planck = T(6.62607015e-34)
 Planck's constant (SI units).
 
template<typename T >
constexprph::math::constant::c_light = T(299792458)
 Light speed in vacuum (SI units).
 
template<typename T >
constexprph::math::constant::k_Boltzmann = T(1.380649e-23)
 
constexpr std::size_t ph::math::constant::KiB = 1024
 
constexpr std::size_t ph::math::constant::MiB = KiB * 1024
 
constexpr std::size_t ph::math::constant::GiB = MiB * 1024
 
constexpr std::size_t ph::math::constant::TiB = GiB * 1024
 
constexpr std::size_t ph::math::constant::PiB = TiB * 1024
 
Axis Indices

Standard axis indices used in the renderer.

constexpr std::size_t ph::math::constant::UNKNOWN_AXIS = static_cast<std::size_t>(-1)
 
constexpr std::size_t ph::math::constant::X_AXIS = 0
 
constexpr std::size_t ph::math::constant::Y_AXIS = 1
 
constexpr std::size_t ph::math::constant::Z_AXIS = 2