|
Blender V5.3
|
Go to the source code of this file.
| ccl_device_inline float2 as_float2 | ( | const float4 & | a | ) |
Definition at line 241 of file math_float2.h.
References as_float2(), ccl_device_inline, make_float2, float4::x, and float4::y.
Referenced by as_float2().
| ccl_device_inline float average | ( | const float2 | a | ) |
Definition at line 137 of file math_float2.h.
References average(), ccl_device_inline, float2::x, and float2::y.
| ccl_device_inline float2 clamp | ( | const float2 | a, |
| const float2 | mn, | ||
| const float2 | mx ) |
Definition at line 226 of file math_float2.h.
References ccl_device_inline, clamp(), max, and min.
| ccl_device_inline float cross | ( | const float2 | a, |
| const float2 | b ) |
Definition at line 200 of file math_float2.h.
References b, ccl_device_inline, cross, float2::x, and float2::y.
| ccl_device_inline float distance | ( | const float2 | a, |
| const float2 | b ) |
Definition at line 195 of file math_float2.h.
References b, ccl_device_inline, distance(), and len().
| ccl_device_inline float dot | ( | const float2 | a, |
| const float2 | b ) |
Definition at line 131 of file math_float2.h.
References b, ccl_device_inline, dot(), float2::x, and float2::y.
| ccl_device_inline float2 fabs | ( | const float2 | a | ) |
Definition at line 236 of file math_float2.h.
References ccl_device_inline, fabs(), fabsf, make_float2, float2::x, and float2::y.
| ccl_device_inline float2 floor | ( | const float2 | a | ) |
Definition at line 251 of file math_float2.h.
References ccl_device_inline, floor, floorf, make_float2, float2::x, and float2::y.
| ccl_device_inline float2 fmod | ( | const float2 | a, |
| const float | b ) |
Definition at line 231 of file math_float2.h.
References b, ccl_device_inline, fmod(), fmodf, make_float2, float2::x, and float2::y.
Referenced by blender::BLI_timecode_string_from_time_simple(), blender::ed::sculpt_paint::color::color_filter_task(), blender::dial_ghostarc_draw(), blender::dial_ghostarc_get_angles(), blender::distribute_from_faces_exec(), blender::distribute_from_volume_exec(), blender::ed::sculpt_paint::color::do_paint_brush_task(), blender::ed::sculpt_paint::expand::face_state_get(), blender::fcm_cycles_time(), blender::fcm_fn_generator_evaluate(), fmod(), fmod(), fmod(), fmod(), blender::getcolor_fcurve_rainbow(), blender::ed::sculpt_paint::expand::gradient_value_get(), blender::graph_fmodifier_delete_exec(), blender::ui::grid_axis_start_and_count(), blender::hammersley_create(), blender::ed::space_node::nearest_node_grid_coord(), blender::nlastrip_evaluate_controls(), blender::paint_brush_color_get(), blender::radial_control_modal(), safe_fmod(), safe_modulo(), safe_noise(), safe_noise(), safe_noise(), safe_noise(), safe_snoise(), safe_snoise(), safe_snoise(), safe_snoise(), SKY_arhosekskymodel_radiance(), snoise_2d(), snoise_3d(), snoise_4d(), TEST_F(), TEST_F(), blender::valuefn(), and blender::ed::sculpt_paint::expand::vert_falloff_is_enabled().
| ccl_device_inline float2 interp | ( | const float2 | a, |
| const float2 | b, | ||
| const float | t ) |
Definition at line 246 of file math_float2.h.
References b, ccl_device_inline, and interp().
| ccl_device_inline bool is_zero | ( | const float2 | a | ) |
Definition at line 126 of file math_float2.h.
References ccl_device_inline, is_zero(), float2::x, and float2::y.
| ccl_device_inline bool isequal | ( | const float2 | a, |
| const float2 | b ) |
Definition at line 142 of file math_float2.h.
References all(), b, ccl_device_inline, and isequal().
Referenced by bsdf_coat_setup(), bsdf_microfacet_setup_fresnel_f82_tint(), bump_shadowing_term(), fresnel_iridescence_channel(), generalized_schlick_fresnel(), integrate_surface_holdout(), isequal(), isequal(), isequal(), isequal(), light_tree_importance(), maybe_ensure_valid_specular_reflection(), and microfacet_ggx_preserve_energy().
| ccl_device_inline float len | ( | const float2 | a | ) |
Definition at line 163 of file math_float2.h.
References ccl_device_inline, dot(), len(), and sqrtf.
| ccl_device_inline float len_squared | ( | const float2 | a | ) |
Definition at line 183 of file math_float2.h.
References ccl_device_inline, dot(), and len_squared().
| ccl_device_template_spec float2 make_zero | ( | ) |
Definition at line 23 of file math_float2.h.
References ccl_device_template_spec, make_zero(), and zero_float2().
| ccl_device_inline float2 mask | ( | const MaskType | mask, |
| const float2 | a ) |
Definition at line 157 of file math_float2.h.
References ccl_device_inline, mask(), select, and zero_float2().
Referenced by __btc(), __btc(), btMultiBodyDynamicsWorld::addMultiBody(), addRigidBody(), btDynamicsWorld::addRigidBody(), btSimpleDynamicsWorld::addRigidBody(), Device::available_devices(), available_devices_func(), eevee::light::bitfield_mask(), blender_device_info(), bvh_unaligned_node_intersect(), BVHObjectBinning::BVHObjectBinning(), eevee::dof::setup::reduce::comp_main(), Device::device_capabilities(), device_kernel_mask_as_string(), GJK< btConvexTemplate >::Evaluate(), gjkepa2_impl::GJK::Evaluate(), fabs(), GHOST_Buttons::get(), GHOST_ModifierKeys::get(), GetApplicationSupportDir(), GHOST_ISystem::getButtonState(), GHOST_System::getButtonState(), GHOST_ModifierKeys::getModifierKeyCode(), GHOST_ISystem::getModifierKeyState(), GHOST_System::getModifierKeyState(), Cubes::getNumTriangle(), Cubes::getTriangle(), GHOST_WindowX11::getWindowCursorGrab(), hash_shuffle_uint(), libmv_samplePlanarPatchByte(), libmv_samplePlanarPatchFloat(), mask(), mask(), mask(), node_light_evaluation_common(), node_light_evaluation_common_impl(), node_light_evaluation_diffuse(), node_light_evaluation_glossy(), operator-(), operator-(), grease_pencil::vfx::Rim::process(), GHOST_SystemWin32::processButtonEvent(), libmv::SamplePlanarPatch(), sdl_ghost_CreateCursor(), btDbvtAabbMm::Select, select(), select(), select(), select(), select(), select(), select(), GHOST_Buttons::set(), GHOST_ModifierKeys::set(), GHOST_IWindow::setCustomCursorShape(), GHOST_Window::setCustomCursorShape(), GHOST_Window::setWindowCustomCursorShape(), GHOST_WindowSDL::setWindowCustomCursorShape(), GHOST_WindowWayland::setWindowCustomCursorShape(), GHOST_WindowX11::setWindowCustomCursorShape(), snoise_2d(), snoise_3d(), snoise_4d(), GHOST_NDOFManager::updateButtonsBitmask(), DeviceQueue::~DeviceQueue(), GHOST_Buttons::~GHOST_Buttons(), and GHOST_ModifierKeys::~GHOST_ModifierKeys().
| ccl_device_inline float2 max | ( | const float2 | a, |
| const float2 | b ) |
Definition at line 221 of file math_float2.h.
References b, ccl_device_inline, make_float2, max, float2::x, and float2::y.
| ccl_device_inline float2 min | ( | const float2 | a, |
| const float2 | b ) |
Definition at line 216 of file math_float2.h.
References b, ccl_device_inline, make_float2, min, float2::x, and float2::y.
| ccl_device_inline float2 normalize | ( | const float2 | a | ) |
Definition at line 205 of file math_float2.h.
References ccl_device_inline, len(), and normalize.
| ccl_device_inline float2 normalize_len | ( | const float2 | a, |
| ccl_private float * | t ) |
Definition at line 210 of file math_float2.h.
References ccl_device_inline, ccl_private, len(), and normalize_len().
Referenced by background_portal_pdf(), background_portal_sample(), BVHUnaligned::compute_aligned_space(), AreaLight::copy_to_kernel(), kernel_path_mnee_sample(), light_tree_node_importance(), light_tree_to_local_space(), mnee_newton_solver(), mnee_path_contribution(), mnee_setup_manifold_vertex(), normalize_len(), normalize_len(), ray_aligned_disk_intersect(), and triangle_light_sample().
| ccl_device_inline float2 one_float2 | ( | ) |
Definition at line 18 of file math_float2.h.
References ccl_device_inline, make_float2, and one_float2().
Referenced by bsdf_oren_nayar_sample(), bsdf_roughness_eta(), bsdf_sample(), fresnel_dielectric_polarized(), fresnel_iridescence_channel(), kernel_image_tile_wrap(), SubPatch::map_uv(), one_float2(), point_light_tree_parameters(), snoise_2d(), and spot_light_tree_parameters().
| ccl_device_inline bool operator!= | ( | const float2 | a, |
| const float2 | b ) |
Definition at line 116 of file math_float2.h.
References b, ccl_device_inline, and operator!=().
Referenced by ccl_try_align(), operator!=(), operator!=(), operator!=(), operator!=(), operator!=(), operator!=(), operator!=(), operator!=(), operator!=(), operator!=(), and operator!=().
| ccl_device_inline float2 operator* | ( | const float2 | a, |
| const float | f ) |
Definition at line 39 of file math_float2.h.
References ccl_device_inline, make_float2, operator*(), float2::x, and float2::y.
| ccl_device_inline float2 operator* | ( | const float2 | a, |
| const float2 | b ) |
Definition at line 34 of file math_float2.h.
References b, ccl_device_inline, make_float2, operator*(), float2::x, and float2::y.
| ccl_device_inline float2 operator* | ( | float | f, |
| const float2 | a ) |
Definition at line 44 of file math_float2.h.
References ccl_device_inline, make_float2, operator*(), float2::x, and float2::y.
| ccl_device_inline float2 operator*= | ( | float2 & | a, |
| const float | f ) |
Definition at line 95 of file math_float2.h.
References ccl_device_inline, and operator*=().
| ccl_device_inline float2 operator*= | ( | float2 & | a, |
| const float2 | b ) |
Definition at line 90 of file math_float2.h.
References b, ccl_device_inline, and operator*=().
Referenced by operator*=(), operator*=(), operator*=(), operator*=(), operator*=(), operator*=(), operator*=(), operator*=(), operator*=(), operator*=(), operator*=(), operator*=(), operator*=(), and operator*=().
| ccl_device_inline float2 operator+ | ( | const float2 | a, |
| const float | f ) |
Definition at line 70 of file math_float2.h.
References ccl_device_inline, make_float2, and operator+().
| ccl_device_inline float2 operator+ | ( | const float2 | a, |
| const float2 | b ) |
Definition at line 65 of file math_float2.h.
References b, ccl_device_inline, make_float2, operator+(), float2::x, and float2::y.
| ccl_device_inline float2 operator+= | ( | float2 & | a, |
| const float2 | b ) |
Definition at line 85 of file math_float2.h.
References b, ccl_device_inline, and operator+=().
| ccl_device_inline float2 operator- | ( | const float2 & | a | ) |
Definition at line 29 of file math_float2.h.
References ccl_device_inline, make_float2, operator-(), float2::x, and float2::y.
| ccl_device_inline float2 operator- | ( | const float2 | a, |
| const float | f ) |
Definition at line 80 of file math_float2.h.
References ccl_device_inline, make_float2, and operator-().
| ccl_device_inline float2 operator- | ( | const float2 | a, |
| const float2 | b ) |
Definition at line 75 of file math_float2.h.
References b, ccl_device_inline, make_float2, operator-(), float2::x, and float2::y.
| ccl_device_inline float2 operator/ | ( | const float2 | a, |
| const float | f ) |
Definition at line 54 of file math_float2.h.
References ccl_device_inline, make_float2, operator/(), float2::x, and float2::y.
| ccl_device_inline float2 operator/ | ( | const float2 | a, |
| const float2 | b ) |
Definition at line 60 of file math_float2.h.
References b, ccl_device_inline, make_float2, operator/(), float2::x, and float2::y.
| ccl_device_inline float2 operator/ | ( | float | f, |
| const float2 | a ) |
Definition at line 49 of file math_float2.h.
References ccl_device_inline, make_float2, operator/(), float2::x, and float2::y.
| ccl_device_inline float2 operator/= | ( | float2 & | a, |
| const float | f ) |
Definition at line 105 of file math_float2.h.
References ccl_device_inline, and operator/=().
| ccl_device_inline float2 operator/= | ( | float2 & | a, |
| const float2 | b ) |
Definition at line 100 of file math_float2.h.
References b, ccl_device_inline, and operator/=().
| ccl_device_inline bool operator== | ( | const float2 | a, |
| const float2 | b ) |
Definition at line 111 of file math_float2.h.
References b, ccl_device_inline, operator==(), float2::x, and float2::y.
Referenced by ccl_try_align(), operator!=(), operator!=(), operator!=(), operator!=(), operator!=(), operator==(), operator==(), operator==(), operator==(), operator==(), operator==(), operator==(), operator==(), operator==(), operator==(), operator==(), operator==(), operator==(), operator==(), operator==(), operator==(), operator==(), operator==(), operator==(), operator==(), operator==(), operator==(), operator==(), operator==(), operator==(), and operator==().
| ccl_device_inline int2 operator>= | ( | const float2 | a, |
| const float2 | b ) |
Definition at line 121 of file math_float2.h.
References b, ccl_device_inline, make_int2(), operator>=(), float2::x, and float2::y.
Referenced by operator>=(), operator>=(), operator>=(), operator>=(), operator>=(), operator>=(), and operator>=().
| ccl_device_inline float2 power | ( | const float2 | v, |
| const float | e ) |
Definition at line 259 of file math_float2.h.
References ccl_device_inline, make_float2, power(), and powf.
Referenced by PrattParser< Derived, ResultT, NodeT >::BindingPower::BindingPower(), bsdf_ashikhmin_velvet_sample(), bsdf_thin_glass_fresnel(), blender::seq::color_balance_sop(), blender::math::fallback_pow(), blender::falloff_func(), light_point_light(), blender::seq::make_cb_table_sop(), node_light_info(), node_light_info_impl(), blender::nodes::node_composite_color_balance_cc::offset_power_slope(), blender::math::pow(), power(), power(), power(), blender::math::safe_pow(), slab_color_at_angle(), eevee::volume::volume_light(), voronoi_distance(), and voronoi_distance_bound().
| ccl_device_inline float reduce_add | ( | const float2 | a | ) |
Definition at line 178 of file math_float2.h.
References ccl_device_inline, reduce_add(), float2::x, and float2::y.
| ccl_device_inline float reduce_max | ( | const float2 | a | ) |
Definition at line 173 of file math_float2.h.
References ccl_device_inline, max, reduce_max(), float2::x, and float2::y.
| ccl_device_inline float reduce_min | ( | const float2 | a | ) |
Definition at line 168 of file math_float2.h.
References ccl_device_inline, min, reduce_min(), float2::x, and float2::y.
| ccl_device_inline float2 safe_divide_float2_float | ( | const float2 | a, |
| const float | b ) |
Definition at line 264 of file math_float2.h.
References b, ccl_device_inline, safe_divide_float2_float(), and zero_float2().
Referenced by safe_divide_float2_float().
| ccl_device_inline float2 safe_normalize | ( | const float2 | a | ) |
Definition at line 188 of file math_float2.h.
References ccl_device_inline, len(), and safe_normalize().
| ccl_device_inline float2 select | ( | const MaskType | mask, |
| const float2 | a, | ||
| const float2 | b ) |
Definition at line 152 of file math_float2.h.
References b, ccl_device_inline, make_float2, mask(), select, float2::x, and float2::y.
| CCL_NAMESPACE_BEGIN ccl_device_inline float2 zero_float2 | ( | ) |
Definition at line 13 of file math_float2.h.
References ccl_device_inline, make_float2, and zero_float2().
Referenced by area_light_eval_from_intersection(), area_light_mnee_sample_update(), background_portal_pdf(), bsdf_roughness_eta(), bsdf_sample(), bsdf_thin_glass_transmission_sample(), direction_to_equirectangular_range(), integrate_light_nee(), CCL_NAMESPACE_BEGIN::kernel_image_interp(), kernel_image_interp(), kernel_image_tile_wrap(), kernel_path_mnee_sample(), light_sample_shader_eval_forward(), make_zero(), SubPatch::map_uv(), mask(), mnee_setup_manifold_vertex(), NODE_DEFINE(), ObtainCacheParticleUV(), rs_get_texture_info(), safe_divide_float2_float(), sample_uniform_disk(), svm_node_tex_voronoi(), Camera::world_to_raster_size(), and zero_float2().