|
Blender V5.3
|
#include "util/math_base.h"#include "util/math_float4.h"#include "util/types_float3.h"#include "util/types_float4.h"#include "util/types_int3.h"#include "util/types_uint3.h"Go to the source code of this file.
| ccl_device_inline bool any_zero | ( | const float3 | a | ) |
Definition at line 576 of file math_float3.h.
References any_zero(), ccl_device_inline, float3::x, float3::y, and float3::z.
Referenced by any_zero().
| ccl_device_inline float3 atan2 | ( | const float3 | y, |
| const float3 | x ) |
Definition at line 481 of file math_float3.h.
References atan2, atan2f, ccl_device_inline, make_float3(), x, and y.
| ccl_device_inline float average | ( | const float3 | a | ) |
Definition at line 592 of file math_float3.h.
References average(), ccl_device_inline, and reduce_add().
| ccl_device_inline float3 ceil | ( | const float3 | a | ) |
Definition at line 442 of file math_float3.h.
References ccl_device_inline, ceil, ceilf, make_float3(), float3::x, float3::y, and float3::z.
| ccl_device_inline float3 clamp | ( | const float3 | a, |
| const float3 | mn, | ||
| const float3 | mx ) |
Definition at line 360 of file math_float3.h.
References ccl_device_inline, clamp(), max, and min.
| ccl_device_inline float3 compatible_sign | ( | const float3 | v | ) |
Definition at line 688 of file math_float3.h.
References ccl_device_inline, compatible_sign(), compatible_signf(), and make_float3().
| ccl_device_inline auto component_is_zero | ( | const float3 | a | ) |
Definition at line 668 of file math_float3.h.
References ccl_device_inline, component_is_zero(), component_wise_equal(), and zero_float3().
Referenced by component_is_zero(), safe_divide(), safe_divide(), safe_floored_fmod(), safe_floored_fmod(), and safe_fmod().
| ccl_device_inline auto component_wise_equal | ( | const float3 | a, |
| const float3 | b ) |
Definition at line 655 of file math_float3.h.
References b, ccl_device_inline, component_wise_equal(), make_int3(), float3::x, float3::y, and float3::z.
Referenced by component_is_zero(), and component_wise_equal().
| ccl_device_inline void copy_v3_v3 | ( | ccl_private float * | r, |
| const float3 | val ) |
Definition at line 828 of file math_float3.h.
References ccl_device_inline, ccl_private, copy_v3_v3(), float3::x, float3::y, and float3::z.
Referenced by Light::copy_to_kernel(), copy_v3_v3(), Freestyle::BlenderFileLoader::insertShapeNode(), set_attribute_float3_3(), set_data_float3(), and stack_store_float3().
| ccl_device_inline float3 cos | ( | const float3 | v | ) |
Definition at line 471 of file math_float3.h.
References ccl_device_inline, cos, cosf, and make_float3().
| ccl_device_inline float3 cross | ( | const float3 | a, |
| const float3 | b ) |
Definition at line 319 of file math_float3.h.
References b, ccl_device_inline, cross, make_float3(), msub(), float3::x, x, float3::y, y, float3::z, and z().
| ccl_device_inline float distance | ( | const float3 | a, |
| const float3 | b ) |
Definition at line 314 of file math_float3.h.
References b, ccl_device_inline, distance(), and len().
| ccl_device_inline float dot | ( | const float3 | a, |
| const float3 | b ) |
Definition at line 254 of file math_float3.h.
References b, ccl_device_inline, dot(), float3::x, float3::y, and float3::z.
| ccl_device_inline float dot_xy | ( | const float3 | a, |
| const float3 | b ) |
Definition at line 279 of file math_float3.h.
References b, ccl_device_inline, dot_xy(), float3::x, and float3::y.
Referenced by dot_xy().
| ccl_device_inline float3 ensure_finite | ( | const float3 | v | ) |
Definition at line 698 of file math_float3.h.
References ccl_device_inline, ensure_finite(), isfinite_safe(), float3::x, float3::y, and float3::z.
| ccl_device_inline float3 exp | ( | const float3 | v | ) |
Definition at line 456 of file math_float3.h.
References ccl_device_inline, exp, expf, and make_float3().
| ccl_device_inline float3 fabs | ( | const float3 | a | ) |
Definition at line 365 of file math_float3.h.
References ccl_device_inline, fabs(), fabsf, make_float3(), mask(), float3::x, float3::y, and float3::z.
| ccl_device_inline float3 faceforward | ( | const float3 | vector, |
| const float3 | incident, | ||
| const float3 | reference ) |
Definition at line 500 of file math_float3.h.
References ccl_device_inline, dot(), and faceforward.
| ccl_device_inline uint3 float3_as_uint3 | ( | const float3 | f | ) |
Definition at line 835 of file math_float3.h.
References __float_as_uint, ccl_device_inline, float3_as_uint3(), make_uint3(), float3::x, float3::y, and float3::z.
Referenced by float3_as_uint3().
| ccl_device_inline float3 floor | ( | const float3 | a | ) |
Definition at line 433 of file math_float3.h.
References ccl_device_inline, floor, floorf, make_float3(), float3::x, float3::y, and float3::z.
| ccl_device_inline float3 fmod | ( | const float3 | a, |
| const float | b ) |
Definition at line 383 of file math_float3.h.
References b, ccl_device_inline, fmod(), fmodf, make_float3(), float3::x, float3::y, and float3::z.
| ccl_device_inline float3 fmod | ( | const float3 | a, |
| const float3 | b ) |
Definition at line 399 of file math_float3.h.
References b, ccl_device_inline, fmod(), fmodf, make_float3(), float3::x, float3::y, and float3::z.
| ccl_device_inline float3 interp | ( | const float3 | a, |
| const float3 | b, | ||
| const float | t ) |
Definition at line 557 of file math_float3.h.
References b, ccl_device_inline, and interp().
| ccl_device_inline bool is_zero | ( | const float3 | a | ) |
Definition at line 567 of file math_float3.h.
References ccl_device_inline, is_zero(), make_float3(), float3::x, float3::y, and float3::z.
| ccl_device_inline bool isequal | ( | const float3 | a, |
| const float3 | b ) |
Definition at line 597 of file math_float3.h.
References all(), b, ccl_device_inline, and isequal().
| ccl_device_inline bool isfinite_safe | ( | const float3 | v | ) |
Definition at line 693 of file math_float3.h.
References ccl_device_inline, and isfinite_safe().
| ccl_device_inline float len | ( | const float3 | a | ) |
Definition at line 288 of file math_float3.h.
References ccl_device_inline, dot(), len(), and sqrtf.
| ccl_device_inline float len_squared | ( | const float3 | a | ) |
Definition at line 307 of file math_float3.h.
References ccl_device_inline, dot(), and len_squared().
| ccl_device_inline float3 log | ( | const float3 | v | ) |
Definition at line 461 of file math_float3.h.
References ccl_device_inline, log, logf, and make_float3().
| ccl_device_inline void make_orthonormals | ( | const float3 | N, |
| ccl_private float3 * | a, | ||
| ccl_private float3 * | b ) |
Definition at line 724 of file math_float3.h.
References b, ccl_device_inline, ccl_private, cross, fabsf, make_float3(), make_orthonormals(), N, and normalize.
Referenced by bsdf_ashikhmin_shirley_sample(), bsdf_microfacet_sample(), differential_from_compact(), disk_light_sample(), make_orthonormals(), make_orthonormals_safe_tangent(), merge(), mnee_compute_transfer_matrix(), mnee_setup_manifold_vertex(), phase_sample_direction(), project_reflection(), sample_cos_hemisphere(), sample_uniform_cone(), sample_uniform_hemisphere(), sample_wh(), shader_setup_from_background(), and shading_incoming().
| ccl_device_template_spec float3 make_zero | ( | ) |
Definition at line 31 of file math_float3.h.
References ccl_device_template_spec, make_zero(), and zero_float3().
| ccl_device_inline float2 map_to_sphere | ( | const float3 | co | ) |
Definition at line 808 of file math_float3.h.
References atan2f, ccl_device_inline, dot(), M_1_2PI_F, M_1_PI_F, make_float2, map_to_sphere(), safe_acosf(), sqrtf, UNLIKELY, float3::x, float3::y, and float3::z.
| ccl_device_inline float2 map_to_tube | ( | const float3 | co | ) |
Definition at line 792 of file math_float3.h.
References atan2f, ccl_device_inline, len(), M_PI_F, make_float2, map_to_tube(), sqrtf, float3::x, float3::y, and float3::z.
| ccl_device_inline float3 mask | ( | const MaskType | mask, |
| const float3 | a ) |
Definition at line 623 of file math_float3.h.
References ccl_device_inline, mask(), select, and zero_float3().
| ccl_device_inline float3 max | ( | const float3 | a, |
| const float3 | b ) |
Definition at line 351 of file math_float3.h.
References b, ccl_device_inline, make_float3(), max, float3::x, float3::y, and float3::z.
| ccl_device_inline float3 min | ( | const float3 | a, |
| const float3 | b ) |
Definition at line 342 of file math_float3.h.
References b, ccl_device_inline, make_float3(), min, float3::x, float3::y, and float3::z.
| ccl_device_inline float3 normalize | ( | const float3 | a | ) |
Definition at line 332 of file math_float3.h.
References ccl_device_inline, len(), norm(), and normalize.
| ccl_device_inline float3 normalize_len | ( | const float3 | a, |
| ccl_private float * | t ) |
Definition at line 520 of file math_float3.h.
References ccl_device_inline, ccl_private, len(), normalize_len(), and x.
| ccl_device_inline float3 one_float3 | ( | ) |
Definition at line 26 of file math_float3.h.
References ccl_device_inline, make_float3(), and one_float3().
Referenced by BVH_SHADOW_ALL_PAYLOAD_SUBCLASS(), color_highlight_compress(), color_highlight_uncompress(), Object::compute_volume_step_size(), ShaderGraph::connect(), InvertNode::constant_fold(), MixVectorNode::constant_fold(), MixVectorNonUniformNode::constant_fold(), film_calculate_shadow_catcher(), flatten_closure_tree(), guiding_record_bssrdf_bounce(), guiding_record_bssrdf_segment(), guiding_record_light_surface_segment(), guiding_record_surface_bounce(), guiding_record_surface_segment(), guiding_record_volume_bounce(), guiding_record_volume_segment(), ShaderManager::init_xyz_transforms(), ConstantFolder::is_one(), ConstantFolder::make_one(), NODE_ABSTRACT_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), object_volume_density(), one_float3(), osl_allocate_closure_component(), osl_closure_dielectric_bsdf_setup(), osl_closure_generalized_schlick_bsdf_setup(), osl_closure_microfacet_setup(), osl_mul_closure_color(), output_estimate_emission(), precompute_ggx_E(), precompute_ggx_gen_schlick_s(), precompute_ggx_glass_E(), TextureMapping::skip(), snoise_3d(), svm_node_vector_map_range(), sync_volume_object(), tan(), TEST(), and TEST_F().
| ccl_device_inline bool operator!= | ( | const float3 | a, |
| const float3 | b ) |
Definition at line 231 of file math_float3.h.
References b, ccl_device_inline, and operator!=().
| ccl_device_inline float3 operator* | ( | const float | f, |
| const float3 | a ) |
Definition at line 75 of file math_float3.h.
References ccl_device_inline, make_float3(), operator*(), float3::x, float3::y, and float3::z.
| ccl_device_inline float3 operator* | ( | const float3 | a, |
| const float | f ) |
Definition at line 66 of file math_float3.h.
References ccl_device_inline, make_float3(), operator*(), float3::x, float3::y, and float3::z.
| ccl_device_inline float3 operator* | ( | const float3 | a, |
| const float3 | b ) |
Definition at line 57 of file math_float3.h.
References b, ccl_device_inline, make_float3(), operator*(), float3::x, float3::y, and float3::z.
| ccl_device_inline float3 operator*= | ( | float3 & | a, |
| const float | f ) |
Definition at line 165 of file math_float3.h.
References ccl_device_inline, and operator*=().
| ccl_device_inline float3 operator*= | ( | float3 & | a, |
| const float3 | b ) |
Definition at line 160 of file math_float3.h.
References b, ccl_device_inline, and operator*=().
| ccl_device_inline packed_float3 operator*= | ( | packed_float3 & | a, |
| const float | f ) |
Definition at line 188 of file math_float3.h.
References ccl_device_inline, and operator*=().
| ccl_device_inline packed_float3 operator*= | ( | packed_float3 & | a, |
| const float3 | b ) |
Definition at line 182 of file math_float3.h.
References b, ccl_device_inline, and operator*=().
| ccl_device_inline float3 operator+ | ( | const float | a, |
| const float3 | b ) |
Definition at line 126 of file math_float3.h.
References b, ccl_device_inline, make_float3(), and operator+().
| ccl_device_inline float3 operator+ | ( | const float3 | a, |
| const float | b ) |
Definition at line 121 of file math_float3.h.
References b, ccl_device_inline, make_float3(), and operator+().
| ccl_device_inline float3 operator+ | ( | const float3 | a, |
| const float3 | b ) |
Definition at line 112 of file math_float3.h.
References b, ccl_device_inline, make_float3(), operator+(), float3::x, float3::y, and float3::z.
| ccl_device_inline float3 operator+= | ( | float3 & | a, |
| const float3 | b ) |
Definition at line 150 of file math_float3.h.
References b, ccl_device_inline, and operator+=().
| ccl_device_inline packed_float3 operator+= | ( | packed_float3 & | a, |
| const float3 | b ) |
Definition at line 206 of file math_float3.h.
References b, ccl_device_inline, and operator+=().
| ccl_device_inline float3 operator- | ( | const float | a, |
| const float3 | b ) |
Definition at line 145 of file math_float3.h.
References b, ccl_device_inline, make_float3(), and operator-().
| ccl_device_inline float3 operator- | ( | const float3 & | a | ) |
Definition at line 48 of file math_float3.h.
References ccl_device_inline, make_float3(), operator-(), float3::x, float3::y, and float3::z.
| ccl_device_inline float3 operator- | ( | const float3 | a, |
| const float | b ) |
Definition at line 140 of file math_float3.h.
References b, ccl_device_inline, make_float3(), and operator-().
| ccl_device_inline float3 operator- | ( | const float3 | a, |
| const float3 | b ) |
Definition at line 131 of file math_float3.h.
References b, ccl_device_inline, make_float3(), operator-(), float3::x, float3::y, and float3::z.
| ccl_device_inline float3 operator-= | ( | float3 & | a, |
| const float3 | b ) |
Definition at line 155 of file math_float3.h.
References b, ccl_device_inline, and operator-=().
Referenced by KDL::Rotation::Inverse(), operator-=(), operator-=(), operator-=(), operator-=(), operator-=(), operator-=(), operator-=(), operator-=(), operator-=(), and KDL::Rotation2::Rot().
| ccl_device_inline float3 operator/ | ( | const float | f, |
| const float3 | a ) |
Definition at line 84 of file math_float3.h.
References ccl_device_inline, make_float3(), operator/(), float3::x, float3::y, and float3::z.
| ccl_device_inline float3 operator/ | ( | const float3 | a, |
| const float | f ) |
Definition at line 93 of file math_float3.h.
References ccl_device_inline, make_float3(), operator/(), float3::x, float3::y, and float3::z.
| ccl_device_inline float3 operator/ | ( | const float3 | a, |
| const float3 | b ) |
Definition at line 103 of file math_float3.h.
References b, ccl_device_inline, make_float3(), operator/(), float3::x, float3::y, and float3::z.
| ccl_device_inline float3 operator/= | ( | float3 & | a, |
| const float | f ) |
Definition at line 175 of file math_float3.h.
References ccl_device_inline, and operator/=().
| ccl_device_inline float3 operator/= | ( | float3 & | a, |
| const float3 | b ) |
Definition at line 170 of file math_float3.h.
References b, ccl_device_inline, and operator/=().
| ccl_device_inline packed_float3 operator/= | ( | packed_float3 & | a, |
| const float | f ) |
Definition at line 200 of file math_float3.h.
References ccl_device_inline, and operator/=().
| ccl_device_inline packed_float3 operator/= | ( | packed_float3 & | a, |
| const float3 | b ) |
Definition at line 194 of file math_float3.h.
References b, ccl_device_inline, and operator/=().
| ccl_device_inline int3 operator< | ( | const float3 | a, |
| const float3 | b ) |
Definition at line 245 of file math_float3.h.
References b, ccl_device_inline, make_int3(), operator<(), float3::x, float3::y, and float3::z.
| ccl_device_inline int3 operator== | ( | const float3 | a, |
| const float | b ) |
Definition at line 222 of file math_float3.h.
References b, ccl_device_inline, make_float3(), make_int3(), operator==(), float3::x, float3::y, and float3::z.
| ccl_device_inline bool operator== | ( | const float3 | a, |
| const float3 | b ) |
Definition at line 213 of file math_float3.h.
References b, ccl_device_inline, operator==(), float3::x, float3::y, and float3::z.
| ccl_device_inline int3 operator> | ( | const float3 | a, |
| const float | b ) |
Definition at line 272 of file math_float3.h.
References b, ccl_device_inline, make_float3(), and operator>().
| ccl_device_inline int3 operator> | ( | const float3 | a, |
| const float3 | b ) |
Definition at line 263 of file math_float3.h.
References b, ccl_device_inline, make_int3(), operator>(), float3::x, float3::y, and float3::z.
Referenced by operator>(), operator>(), operator>(), and operator>().
| ccl_device_inline int3 operator>= | ( | const float3 | a, |
| const float3 | b ) |
Definition at line 236 of file math_float3.h.
References b, ccl_device_inline, make_int3(), operator>=(), float3::x, float3::y, and float3::z.
| ccl_device_inline float3 power | ( | const float3 | v, |
| const float | e ) |
Definition at line 630 of file math_float3.h.
References ccl_device_inline, make_float3(), power(), and powf.
| ccl_device_inline float precise_angle | ( | const float3 | a, |
| const float3 | b ) |
Definition at line 780 of file math_float3.h.
References atan2f, b, ccl_device_inline, len(), and precise_angle().
Referenced by pdf_uniform_cone(), precise_angle(), and sky_radiance_nishita().
| ccl_device_inline float3 project | ( | const float3 | v, |
| const float3 | v_proj ) |
Definition at line 514 of file math_float3.h.
References ccl_device_inline, dot(), len_squared(), project(), and zero_float3().
| ccl_device_inline float3 reciprocal | ( | const float3 | a | ) |
Definition at line 36 of file math_float3.h.
References ccl_device_inline, make_float3(), reciprocal(), float3::x, float3::y, and float3::z.
Referenced by bvh_inverse_direction(), ray_aabb_intersect(), and reciprocal().
| ccl_device_inline float reduce_add | ( | const float3 | a | ) |
Definition at line 581 of file math_float3.h.
References ccl_device_inline, reduce_add(), float3::x, float3::y, and float3::z.
| ccl_device_inline float reduce_max | ( | const float3 | a | ) |
Definition at line 302 of file math_float3.h.
References ccl_device_inline, max, reduce_max(), float3::x, float3::y, and float3::z.
| ccl_device_inline float reduce_min | ( | const float3 | a | ) |
Definition at line 297 of file math_float3.h.
References ccl_device_inline, min, reduce_min(), float3::x, float3::y, and float3::z.
| ccl_device_inline float3 reflect | ( | const float3 | incident, |
| const float3 | unit_normal ) |
Definition at line 486 of file math_float3.h.
References ccl_device_inline, dot(), and reflect.
| ccl_device_inline float3 refract | ( | const float3 | incident, |
| const float3 | normal, | ||
| const float | eta ) |
Definition at line 491 of file math_float3.h.
References ccl_device_inline, dot(), refract(), sqrt, and zero_float3().
| ccl_device_inline float3 rotate_around_axis | ( | const float3 | p, |
| const float3 | axis, | ||
| const float | angle ) |
Definition at line 754 of file math_float3.h.
References angle(), ccl_device_inline, cosf, rotate_around_axis(), sinf, float3::x, float3::y, and float3::z.
| ccl_device_inline float3 round | ( | const float3 | a | ) |
Definition at line 422 of file math_float3.h.
References ccl_device_inline, make_float3(), round, roundf, float3::x, float3::y, and float3::z.
| ccl_device_inline float3 safe_divide | ( | const float3 | a, |
| const float | b ) |
Definition at line 552 of file math_float3.h.
References b, ccl_device_inline, safe_divide(), and zero_float3().
| ccl_device_inline float3 safe_divide | ( | const float3 | a, |
| const float3 | b ) |
Definition at line 545 of file math_float3.h.
References b, ccl_device_inline, make_float3(), safe_divide(), float3::x, float3::y, and float3::z.
| ccl_device_inline float3 safe_floored_fmod | ( | const float3 | a, |
| const float3 | b ) |
Definition at line 673 of file math_float3.h.
References b, ccl_device_inline, component_is_zero(), floor, safe_floored_fmod(), select, and zero_float3().
| ccl_device_inline float3 safe_fmod | ( | const float3 | a, |
| const float3 | b ) |
Definition at line 683 of file math_float3.h.
References b, ccl_device_inline, component_is_zero(), fmod(), safe_fmod(), select, and zero_float3().
| ccl_device_inline float3 safe_log | ( | const float3 | v | ) |
Definition at line 640 of file math_float3.h.
References ccl_device_inline, log, safe_log(), select, and zero_float3().
| ccl_device_inline float3 safe_normalize | ( | const float3 | a | ) |
Definition at line 527 of file math_float3.h.
References ccl_device_inline, len(), and safe_normalize().
| ccl_device_inline float3 safe_normalize_fallback | ( | const float3 | a, |
| const float3 | fallback ) |
Definition at line 533 of file math_float3.h.
References ccl_device_inline, len(), and safe_normalize_fallback().
Referenced by ensure_valid_specular_reflection(), osl_closure_ashikhmin_velvet_setup(), osl_closure_bssrdf_setup(), osl_closure_burley_diffuse_bsdf_setup(), osl_closure_coat_bsdf_setup(), osl_closure_conductor_bsdf_setup(), osl_closure_dielectric_bsdf_setup(), osl_closure_diffuse_ramp_setup(), osl_closure_diffuse_setup(), osl_closure_diffuse_toon_setup(), osl_closure_generalized_schlick_bsdf_setup(), osl_closure_glossy_toon_setup(), osl_closure_hair_chiang_setup(), osl_closure_hair_huang_setup(), osl_closure_hair_reflection_setup(), osl_closure_hair_transmission_setup(), osl_closure_microfacet_f82_tint_setup(), osl_closure_microfacet_multi_ggx_aniso_setup(), osl_closure_microfacet_multi_ggx_glass_setup(), osl_closure_microfacet_setup(), osl_closure_oren_nayar_diffuse_bsdf_setup(), osl_closure_oren_nayar_setup(), osl_closure_phong_ramp_setup(), osl_closure_reflection_setup(), osl_closure_refraction_setup(), osl_closure_sheen_bsdf_setup(), osl_closure_subsurface_bssrdf_setup(), osl_closure_thin_glass_setup(), osl_closure_thin_subsurface_setup(), osl_closure_translucent_bsdf_setup(), osl_closure_translucent_setup(), principled_bsdf_emission(), safe_normalize_fallback(), and svm_node_closure_bsdf().
| ccl_device_inline float3 safe_normalize_len | ( | const float3 | a, |
| ccl_private float * | t ) |
Definition at line 539 of file math_float3.h.
References ccl_device_inline, ccl_private, len(), and safe_normalize_len().
Referenced by area_light_eval(), area_light_mnee_sample_update(), area_light_tree_parameters(), integrator_volume_stack_update_for_subsurface(), point_light_mnee_sample_update(), point_light_sample(), point_light_tree_parameters(), safe_normalize_len(), shadow_ray_setup(), spot_light_mnee_sample_update(), spot_light_sample(), spot_light_tree_parameters(), triangle_light_sample(), and triangle_light_tree_parameters().
| ccl_device_inline float3 safe_pow | ( | const float3 | a, |
| const float3 | b ) |
Definition at line 635 of file math_float3.h.
References b, ccl_device_inline, make_float3(), safe_pow(), safe_powf(), float3::x, float3::y, and float3::z.
| ccl_device_inline float3 safe_sqrt | ( | const float3 | a | ) |
Definition at line 509 of file math_float3.h.
References ccl_device_inline, max, safe_sqrt(), sqrt, and zero_float3().
| ccl_device_inline float3 saturate | ( | const float3 | a | ) |
Definition at line 451 of file math_float3.h.
References ccl_device_inline, make_float3(), saturate, saturatef, float3::x, float3::y, and float3::z.
| ccl_device_inline float3 select | ( | const MaskType | mask, |
| const float3 | a, | ||
| const float3 | b ) |
Definition at line 607 of file math_float3.h.
References b, ccl_device_inline, make_float3(), mask(), select, float3::x, float3::y, and float3::z.
| ccl_device_inline float3 sin | ( | const float3 | v | ) |
Definition at line 466 of file math_float3.h.
References ccl_device_inline, make_float3(), sin, and sinf.
| ccl_device_inline void sincos | ( | const float3 | x, |
| ccl_private float3 * | sine, | ||
| ccl_private float3 * | cosine ) |
Definition at line 645 of file math_float3.h.
References ccl_device_inline, ccl_private, cos, sin, sincos(), and x.
Referenced by blender::BLI_convexhull_aabb_fit_points_2d(), blender::BLI_convexhull_aabb_fit_points_2d_as_sincos(), blender::convexhull_2d_compute_extent_on_axis(), cos(), blender::geometry::inverse_transformation_from_sincos(), blender::geometry::p_chart_rotate_fit_aabb(), libmv::RotationAroundX(), libmv::RotationAroundY(), libmv::RotationAroundZ(), Freestyle::OGF::MatrixUtil::semi_definite_symmetric_eigen(), sin(), sincos(), blender::sincos_canonical(), blender::geometry::sincos_plusminus_90(), blender::geometry::sincos_rotate_90(), blender::sincos_rotate_cw_x(), blender::sincos_rotate_cw_y(), blender::geometry::sincos_wrap(), and blender::geometry::transformation_from_sincos().
| ccl_device_inline float3 sqr | ( | const float3 | a | ) |
Definition at line 562 of file math_float3.h.
References ccl_device_inline, and sqr.
| ccl_device_inline float3 sqrt | ( | const float3 | a | ) |
Definition at line 413 of file math_float3.h.
References ccl_device_inline, make_float3(), sqrt, sqrtf, float3::x, float3::y, and float3::z.
| ccl_device_inline float3 tan | ( | const float3 | v | ) |
Definition at line 476 of file math_float3.h.
References ccl_device_inline, make_float3(), tan, and tanf.
| ccl_device_inline float tan_angle | ( | const float3 | a, |
| const float3 | b ) |
Definition at line 786 of file math_float3.h.
References b, ccl_device_inline, cross, dot(), len(), and tan_angle().
Referenced by area_light_spread_attenuation(), and tan_angle().
| ccl_device_inline float triangle_area | ( | const ccl_private float3 & | v1, |
| const ccl_private float3 & | v2, | ||
| const ccl_private float3 & | v3 ) |
Definition at line 715 of file math_float3.h.
References ccl_device_inline, ccl_private, cross, len(), and triangle_area().
Referenced by LightManager::device_update_distribution(), LightTreeEmitter::LightTreeEmitter(), EdgeDice::quad_area(), triangle_area(), triangle_light_pdf(), and triangle_light_sample().
| ccl_device_inline float3 uint3_as_float3 | ( | const uint3 | f | ) |
Definition at line 844 of file math_float3.h.
References __uint_as_float, ccl_device_inline, make_float3(), uint3_as_float3(), uint3::x, uint3::y, and uint3::z.
Referenced by uint3_as_float3().
| ccl_device_inline float3 wrap | ( | const float3 | value, |
| const float3 | max, | ||
| const float3 | min ) |
Definition at line 678 of file math_float3.h.
References ccl_device_inline, max, min, safe_floored_fmod(), and wrap().
| CCL_NAMESPACE_BEGIN ccl_device_inline float3 zero_float3 | ( | ) |
Definition at line 17 of file math_float3.h.
References ccl_device_inline, make_float3(), and zero_float3().
Referenced by BVHBuild::add_references(), Mesh::add_vertex_normals(), attr_create_pointiness(), background_portal_sample(), bsdf_coat_setup(), bsdf_hair_huang_eval_r(), bsdf_thin_glass_reflection_setup(), bsdf_thin_glass_transmission_setup(), bvh_shadow_all_anyhit_filter(), Camera::Camera(), camera_sample_panorama(), camera_sample_perspective(), closure_sample_weight(), component_is_zero(), Hair::compute_bounds(), Mesh::compute_bounds(), TextureMapping::compute_transform(), compute_vertex_normals(), BackgroundNode::constant_fold(), BlackbodyNode::constant_fold(), EmissionNode::constant_fold(), VectorDisplacementNode::constant_fold(), VectorMathNode::constant_fold(), HDCYCLES_NAMESPACE_OPEN_SCOPE::convertToCycles< float3 >(), differential3_zero(), GeometryManager::displace(), VertexColorNode::expand(), export_hair_curves(), fabs(), film_write_data_passes_background(), fisheye_equidistant_to_direction(), fisheye_equisolid_to_direction(), fisheye_lens_polynomial_to_direction(), flatten_closure_tree(), guiding_record_bssrdf_segment(), guiding_record_bssrdf_weight(), guiding_record_light_surface_segment(), guiding_record_surface_segment(), guiding_record_volume_segment(), Light::has_contribution(), SVMCompiler::input_float3(), integrate_camera_sample(), integrate_light_nee(), integrate_sun_lights(), integrator_init_from_bake(), intersection_curve_shadow_transparency(), Object::is_traceable(), ConstantFolder::is_zero(), kernel_background_evaluate(), kernel_embree_custom_occluded_func_impl(), kernel_volume_density_evaluate(), light_sample(), light_sample_shader_eval_forward(), ConstantFolder::make_zero(), make_zero(), mask(), mirrorball_to_direction(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), NODE_DEFINE(), ObtainCacheParticleData(), osl_closure_microfacet_multi_ggx_glass_setup(), osl_mul_closure_color(), osl_zero_albedo(), output_estimate_emission(), principled_bsdf_emission(), project(), recompute_displaced_corner_normals(), recompute_displaced_vertex_normals(), refract(), rgbe_to_rgb(), safe_divide(), safe_floored_fmod(), safe_fmod(), safe_log(), safe_sqrt(), save_pre_displacement_normals(), Shader::Shader(), shader_setup_from_displace(), shader_setup_from_sample(), TextureMapping::skip(), sky_radiance_nishita(), SVMCompiler::stack_zero_incomplete_derivatives(), surface_shader_ao(), surface_shader_average_normal(), svm_mapping(), svm_mix_exclusion(), svm_node_blackbody(), svm_node_closure_bsdf(), svm_node_displacement(), svm_node_hair_info(), svm_node_point_info(), svm_node_principled_volume(), svm_node_set_bump(), svm_node_tex_voronoi(), svm_node_vector_displacement(), svm_node_vector_map_range(), svm_vector_math(), HdCyclesLight::Sync(), Mesh::tessellate(), TEST(), TEST_F(), TEST_F(), TEST_F(), transform_perspective(), transform_perspective_deriv(), Camera::update(), HdCyclesSession::UpdateScene(), volume_guiding_filter_x(), volume_guiding_filter_y(), Camera::world_to_raster_size(), xml_read_transform(), xyz_to_rgb_clamped(), zero_float3(), and zero_float3x3().