Antkeeper  0.0.1
Namespaces | Functions
atmosphere.hpp File Reference
#include <engine/physics/constants.hpp>
#include <engine/math/numbers.hpp>
#include <algorithm>
#include <cmath>

Go to the source code of this file.

Namespaces

 physics
 Physics.
 
 physics::gas
 
 physics::gas::atmosphere
 Atmosphere-related functions.
 
 physics::gas::atmosphere::density
 Atmospheric density functions.
 

Functions

template<class T >
physics::gas::atmosphere::polarization (T ior, T density)
 Calculates a particle polarizability factor. More...
 
template<class T >
physics::gas::atmosphere::scattering (T density, T polarization, T wavelength)
 Calculates a wavelength-dependent scattering coefficient. More...
 
template<class T >
physics::gas::atmosphere::scattering (T density, T polarization)
 Calculates a wavelength-independent scattering coefficient. More...
 
template<class T >
physics::gas::atmosphere::absorption (T scattering, T albedo)
 Calculates an absorption coefficient. More...
 
template<class T >
physics::gas::atmosphere::extinction (T scattering, T albedo)
 Calculates an extinction coefficient. More...
 
template<class T >
physics::gas::atmosphere::optical_depth_exp (const math::vec3< T > &a, const math::vec3< T > &b, T r, T sh, std::size_t n)
 Approximates the optical depth of exponentially-distributed atmospheric particles between two points using the trapezoidal rule. More...
 
template<class T >
physics::gas::atmosphere::optical_depth_tri (const math::vec3< T > &p0, const math::vec3< T > &p1, T r, T a, T b, T c, std::size_t n)
 Approximates the optical depth of triangularly-distributed atmospheric particles between two points using the trapezoidal rule. More...
 
template<class T >
physics::gas::atmosphere::density::exponential (T d0, T z, T sh)
 Calculates the density of exponentially-distributed atmospheric particles at a given elevation. More...
 
template<class T >
physics::gas::atmosphere::density::triangular (T d0, T z, T a, T b, T c)
 Calculates the density of triangularly-distributed atmospheric particles at a given elevation. More...