Blender V4.3
mikk_util.hh File Reference
#include <cassert>
#include <cmath>

Go to the source code of this file.

Namespaces

namespace  mikk
 

Macros

#define M_PI_F   (3.1415926535897932f) /* pi */
 

Functions

bool mikk::not_zero (const float fX)
 
static uint mikk::pack_index (const uint face, const uint vert)
 
static void mikk::unpack_index (uint &face, uint &vert, const uint indexIn)
 
float mikk::fast_acosf (float x)
 
static uint mikk::rotl (uint x, uint k)
 
static uint mikk::hash_uint3 (uint kx, uint ky, uint kz)
 
static uint mikk::hash_uint3_fast (const uint x, const uint y, const uint z)
 
static uint mikk::float_as_uint (const float v)
 
static float mikk::uint_as_float (const uint v)
 
static uint mikk::hash_float3_fast (const float x, const float y, const float z)
 
static uint mikk::hash_float3x3 (const float3 &x, const float3 &y, const float3 &z)
 
template<typename T , typename KeyGetter >
void mikk::radixsort (std::vector< T > &data, std::vector< T > &data2, KeyGetter getKey)
 
static void mikk::float_add_atomic (float *val, float add)
 

Macro Definition Documentation

◆ M_PI_F

#define M_PI_F   (3.1415926535897932f) /* pi */

Definition at line 15 of file mikk_util.hh.

Referenced by area_light_spread_attenuation(), area_light_spread_clamp_light(), background_cdf(), background_map_pdf(), background_map_sample(), bsdf_aniso_D(), bsdf_ashikhmin_shirley_eval(), bsdf_ashikhmin_shirley_sample(), bsdf_D(), bsdf_hair_huang_eval_residual(), bsdf_hair_huang_sample(), bsdf_hair_reflection_eval(), bsdf_hair_transmission_eval(), bsdf_hair_transmission_sample(), bsdf_oren_nayar_get_intensity(), bsdf_oren_nayar_setup(), OrientationBounds::calculate_measure(), calculate_ris_target(), compute_2d_gabor_kernel(), compute_2d_gabor_noise_cell(), compute_3d_gabor_kernel(), compute_3d_orientation(), delta_phi(), LightManager::device_update_lights(), direction_to_equiangular_cubemap_face(), direction_to_equirectangular(), equirectangular_to_direction(), fast_acosf(), mikk::fast_acosf(), fast_atan2f(), fresnel_dielectric_polarized(), fresnel_iridescence(), SkyTextureNode::get_sun_average_radiance(), kernel_ies_interp(), light_tree_importance(), LightTreeEmitter::LightTreeEmitter(), map_to_tube(), merge(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), phase_fournier_forand(), phase_fournier_forand_impl(), phase_fournier_forand_newton(), phase_mie(), phase_rayleigh(), point_light_mnee_sample_update(), point_light_sample(), point_light_sample_from_intersection(), IESFile::process(), regular_polygon_sample(), sample_trimmed_logistic(), SkyTextureNode::simplify_settings(), SKY_nishita_skymodel_precompute_texture(), sky_radiance_nishita(), sky_texture_precompute_preetham(), spot_light_mnee_sample_update(), spot_light_sample(), spot_light_sample_from_intersection(), svm_math(), svm_node_ies(), svm_node_principled_volume(), svm_node_tex_gabor(), TEST(), TEST(), TEST(), trimmed_logistic(), TYPED_TEST(), and wrap_angle().