|
Blender
V2.93
|
#include "BLI_assert.h"#include "BLI_math_inline.h"#include "BLI_sys_types.h"#include <math.h>#include "intern/math_base_inline.c"Go to the source code of this file.
Macros | |
| #define | M_PI 3.14159265358979323846 /* pi */ |
| #define | M_PI_2 1.57079632679489661923 /* pi/2 */ |
| #define | M_PI_4 0.78539816339744830962 /* pi/4 */ |
| #define | M_SQRT2 1.41421356237309504880 /* sqrt(2) */ |
| #define | M_SQRT1_2 0.70710678118654752440 /* 1/sqrt(2) */ |
| #define | M_SQRT3 1.73205080756887729352 /* sqrt(3) */ |
| #define | M_SQRT1_3 0.57735026918962576450 /* 1/sqrt(3) */ |
| #define | M_1_PI 0.318309886183790671538 /* 1/pi */ |
| #define | M_E 2.7182818284590452354 /* e */ |
| #define | M_LOG2E 1.4426950408889634074 /* log_2 e */ |
| #define | M_LOG10E 0.43429448190325182765 /* log_10 e */ |
| #define | M_LN2 0.69314718055994530942 /* log_e 2 */ |
| #define | M_LN10 2.30258509299404568402 /* log_e 10 */ |
| #define | NAN_FLT (*((float *)(&NAN_INT))) |
| #define | BLI_ASSERT_UNIT_EPSILON 0.0002f |
| #define | BLI_ASSERT_UNIT_V3(v) |
| #define | BLI_ASSERT_UNIT_V3_DB(v) |
| #define | BLI_ASSERT_UNIT_V2(v) |
| #define | BLI_ASSERT_UNIT_QUAT(q) |
| #define | BLI_ASSERT_ZERO_M3(m) |
| #define | BLI_ASSERT_ZERO_M4(m) |
| #define | BLI_ASSERT_UNIT_M3(m) |
Variables | |
| static const int | NAN_INT = 0x7FC00000 |
| #define BLI_ASSERT_UNIT_EPSILON 0.0002f |
Definition at line 236 of file BLI_math_base.h.
| #define BLI_ASSERT_UNIT_M3 | ( | m | ) |
Definition at line 285 of file BLI_math_base.h.
| #define BLI_ASSERT_UNIT_QUAT | ( | q | ) |
Definition at line 266 of file BLI_math_base.h.
| #define BLI_ASSERT_UNIT_V2 | ( | v | ) |
Definition at line 258 of file BLI_math_base.h.
| #define BLI_ASSERT_UNIT_V3 | ( | v | ) |
Definition at line 242 of file BLI_math_base.h.
| #define BLI_ASSERT_UNIT_V3_DB | ( | v | ) |
Definition at line 250 of file BLI_math_base.h.
| #define BLI_ASSERT_ZERO_M3 | ( | m | ) |
Definition at line 274 of file BLI_math_base.h.
| #define BLI_ASSERT_ZERO_M4 | ( | m | ) |
Definition at line 280 of file BLI_math_base.h.
| #define M_1_PI 0.318309886183790671538 /* 1/pi */ |
Definition at line 59 of file BLI_math_base.h.
| #define M_E 2.7182818284590452354 /* e */ |
Definition at line 62 of file BLI_math_base.h.
| #define M_LN10 2.30258509299404568402 /* log_e 10 */ |
Definition at line 74 of file BLI_math_base.h.
| #define M_LN2 0.69314718055994530942 /* log_e 2 */ |
Definition at line 71 of file BLI_math_base.h.
| #define M_LOG10E 0.43429448190325182765 /* log_10 e */ |
Definition at line 68 of file BLI_math_base.h.
| #define M_LOG2E 1.4426950408889634074 /* log_2 e */ |
Definition at line 65 of file BLI_math_base.h.
| #define M_PI 3.14159265358979323846 /* pi */ |
Definition at line 38 of file BLI_math_base.h.
| #define M_PI_2 1.57079632679489661923 /* pi/2 */ |
Definition at line 41 of file BLI_math_base.h.
| #define M_PI_4 0.78539816339744830962 /* pi/4 */ |
Definition at line 44 of file BLI_math_base.h.
| #define M_SQRT1_2 0.70710678118654752440 /* 1/sqrt(2) */ |
Definition at line 50 of file BLI_math_base.h.
| #define M_SQRT1_3 0.57735026918962576450 /* 1/sqrt(3) */ |
Definition at line 56 of file BLI_math_base.h.
| #define M_SQRT2 1.41421356237309504880 /* sqrt(2) */ |
Definition at line 47 of file BLI_math_base.h.
| #define M_SQRT3 1.73205080756887729352 /* sqrt(3) */ |
Definition at line 53 of file BLI_math_base.h.
Definition at line 82 of file BLI_math_base.h.
Ceiling to the nearest power of 10, e.g.:
| f | Value to ceiling, must be over 0.0. |
Definition at line 109 of file math_base.c.
References BLI_assert, floorf, and powf.
Referenced by cursor_plane_draw(), and TEST().
Definition at line 576 of file math_base_inline.c.
Referenced by BKE_curvemapping_integrate_clamped(), BKE_curveprofile_update(), BKE_where_on_path(), BM_mesh_intersect(), bmesh_topology_rake(), bpy_bm_utils_edge_split(), bpy_bm_utils_vert_collapse_faces(), bpy_bmdeformvert_ass_subscript(), BPy_BMLayerItem_SetItem(), bpy_bmvert_copy_from_vert_interp(), calc_area_normal_and_center_task_cb(), MapRangeFunction::call(), MapRangeSteppedFunction::call(), color_filter_task_cb(), blender::compositor::TimeNode::convertToOperations(), deformStroke(), do_clay_thumb_brush(), do_cloth_brush_apply_forces_task_cb_ex(), do_clump_level(), do_displacement_eraser_brush_task_cb_ex(), do_displacement_smear_brush_task_cb_ex(), do_hue_sat_fac(), do_layer_brush_task_cb_ex(), do_mask_brush_draw_task_cb_ex(), do_rough_curve(), do_smear_brush_task_cb_exec(), do_topology_rake_bmesh_task_cb_ex(), drw_shgroup_bone_envelope(), dyntopo_detail_size_sample_from_surface(), dyntopo_detail_size_update_from_mouse_delta(), EEVEE_depth_of_field_init(), EEVEE_lookdev_init(), filter_blackman_harris(), float_to_half_safe(), gpencil_brush_strength_apply(), gpencil_layer_final_tint_and_alpha_get(), GPENCIL_render_init(), loopcut_modal(), mask_filter_task_cb(), mesh_filter_surface_smooth_displace_task_cb(), mesh_filter_task_cb(), MOD_solidify_extrude_modifyMesh(), paint_cursor_draw_main_inactive_cursor(), paint_draw_3D_view_inactive_brush_cursor(), propagate_linear_data_delta(), radial_control_modal(), scrollbar_keep_scrolling(), scrollbar_set_thumbpos(), scrollbar_start_scrolling(), SCULPT_do_surface_smooth_brush_laplacian_task_cb_ex(), sculpt_expand_colors_update_task_cb(), sculpt_expand_mask_update_task_cb(), SCULPT_surface_smooth_displace_step(), sh_node_clamp_expand_in_mf_network(), smootherstep(), ui_colorpicker_small_wheel_cb(), ui_do_but_COLOR(), ui_do_but_HSVCIRCLE(), UI_draw_roundbox_shade_x(), ui_hsvcircle_pos_from_vals(), view_zoom_to_window_xy_camera(), view_zoomdrag_invoke(), view_zoomdrag_modal(), voxel_size_edit_draw(), voxel_size_edit_modal(), workbench_antialiasing_draw_pass(), and workbench_shadow_data_update().
| MINLINE int clamp_i | ( | int | value, |
| int | min, | ||
| int | max | ||
| ) |
Definition at line 571 of file math_base_inline.c.
References max, max_ii(), min, and min_ii().
Referenced by BKE_tracking_marker_get(), BKE_volume_grid_active_get_for_read(), brush_painter_curve_mask_new(), color_add_v3_i(), do_adjustment_impl(), blender::nodes::geo_node_subdivide_exec(), blender::nodes::geo_node_subdivision_surface_exec(), MOD_solidify_extrude_modifyMesh(), scrollbar_get_thumbH(), sculpt_face_sets_randomize_colors_exec(), twist_get_axis(), ui_do_drag(), and volume_sequence_frame().
| MINLINE size_t clamp_z | ( | size_t | value, |
| size_t | min, | ||
| size_t | max | ||
| ) |
Almost-equal for IEEE floats, using absolute difference method.
| max_diff | the maximum absolute difference. |
Definition at line 597 of file math_base_inline.c.
References Freestyle::a, and fabsf.
Referenced by aggregate_item_normal(), BKE_gpencil_merge_materials_table_get(), BKE_keyblock_add_ctime(), BM_lnorspace_err(), compare_v2v2(), compare_v3v3(), compare_v4v4(), curvemap_make_table(), blender::nodes::do_equal_operation_float(), blender::nodes::do_not_equal_operation_float(), edbm_average_normals_exec(), layerValidate_normal(), nearly_parallel_normalized(), next_edgehalf_bev(), tri_corner_test(), and blender::nodes::use_translate().
Almost-equal for IEEE floats, using their integer representation (mixing ULP and absolute difference methods).
| max_diff | is the maximum absolute difference (allows to take care of the near-zero area, where relative difference methods cannot really work). |
| max_ulps | is the 'maximum number of floats + 1' allowed between a and b to consider them equal. |
Definition at line 613 of file math_base_inline.c.
References Freestyle::a, abs(), BLI_assert, and fabsf.
Referenced by apply_objects_internal(), compare_v2v2_relative(), compare_v3v3_relative(), compare_v4v4_relative(), fcurve_is_changed(), mesh_calc_eigen_matrix(), TEST(), and vfont_to_curve().
Definition at line 472 of file math_base_inline.c.
References Freestyle::a.
Definition at line 467 of file math_base_inline.c.
References Freestyle::a.
Referenced by studiolight_spherical_harmonics_lambda_get().
| MINLINE int cube_i | ( | int | a | ) |
Definition at line 452 of file math_base_inline.c.
References Freestyle::a.
| MINLINE int cube_s | ( | short | a | ) |
Definition at line 447 of file math_base_inline.c.
References Freestyle::a.
| MINLINE int cube_uchar | ( | unsigned char | a | ) |
Definition at line 462 of file math_base_inline.c.
References Freestyle::a.
| MINLINE unsigned int cube_uint | ( | unsigned int | a | ) |
Definition at line 457 of file math_base_inline.c.
References Freestyle::a.
| MINLINE int divide_round_i | ( | int | a, |
| int | b | ||
| ) |
Definition at line 361 of file math_base_inline.c.
References Freestyle::a.
Referenced by blend_color_add_alpha_byte(), blend_color_add_byte(), blend_color_darken_byte(), blend_color_erase_alpha_byte(), blend_color_interpolate_byte(), blend_color_lighten_byte(), blend_color_mix_byte(), blend_color_mul_byte(), blend_color_sub_byte(), calculate_average_color(), do_vpaint_brush_blur_task_cb_ex(), IMB_rectblend(), mcol_add(), mcol_blend(), mcol_darken(), mcol_lighten(), mcol_mul(), mcol_sub(), and vertex_color_smooth_looptag().
Definition at line 47 of file math_base.c.
References fabs(), CCL_NAMESPACE_BEGIN::isfinite(), KDL::pow(), x, y, and z.
Referenced by bc_sanitize_v3(), Color_ToTupleExt(), Euler_ToTupleExt(), Quaternion_to_tuple_ext(), BCMatrix::sanitize(), and Vector_to_tuple_ex().
Floor to the nearest power of 10, e.g.:
| f | Value to floor, must be over 0.0. |
Definition at line 91 of file math_base.c.
References BLI_assert, ceilf, and powf.
Referenced by TEST().
Returns number of (base ten) significant digits of integer part of given double (negative in case of decimal-only floats, 0.01 returns -1 e.g.).
Definition at line 692 of file math_base_inline.c.
References fabs(), and floor().
Referenced by unit_as_string(), and unit_as_string_split_pair().
Returns number of (base ten) significant digits of integer part of given float (negative in case of decimal-only floats, 0.01 returns -1 e.g.).
Definition at line 683 of file math_base_inline.c.
References fabs(), and floor().
Referenced by ui_but_string_get_ex().
| MINLINE int integer_digits_i | ( | const int | i | ) |
Definition at line 697 of file math_base_inline.c.
Referenced by BKE_collection_new_name_get(), and stampdata().
Definition at line 178 of file math_base_inline.c.
Referenced by lineart_LineIntersectTest2d().
Definition at line 173 of file math_base_inline.c.
Referenced by blender::compositor::area(), BKE_curveprofile_create_samples_even_spacing(), BKE_curveprofile_evaluate_length_portion(), BKE_gpencil_stroke_close(), BKE_gpencil_stroke_smooth_strength(), BKE_gpencil_stroke_smooth_thickness(), BKE_gpencil_stroke_smooth_uv(), BKE_gpencil_stroke_subdivide(), BKE_gpencil_stroke_uniform_subdivide(), BKE_pchan_bbone_spline_compute(), bm_decim_edge_collapse(), brush_draw_apply(), computeBindWeights(), data_transfer_interp_float_do(), deformStroke(), duplicateStroke(), evaluate_time_fmodifiers(), evaluate_value_fmodifiers(), fcurve_eval_samples(), get_weight(), gpencil_add_new_points(), gpencil_brush_angle(), gpencil_brush_angle_segment(), gpencil_editcurve_subdivide_curve_segment(), gpencil_interpolate_fl_from_to(), gpencil_interpolate_update_points(), gpencil_smooth_buffer(), gpencil_smooth_segment(), gpencil_stroke_newfrombuffer(), gpencil_stroke_subdivide(), gpencil_stroke_to_bezier(), gpencil_stroke_to_path(), gpencil_subdivide_stroke(), gpencil_vertex_group_smooth_exec(), imm_draw_circle_partial(), imm_draw_disk_partial(), interp_slerp_co_no_v3(), paint_smooth_stroke(), blender::compositor::sample_bilinear_horizontal(), blender::compositor::sample_bilinear_vertical(), SCULPT_do_multiplane_scrape_brush(), splineik_evaluate_bone(), stretchto_evaluate(), stroke_elem_interp(), stroke_interpolate_deform_weights(), stroke_march_next_point(), subdivide_base(), subdividenurb(), table_sample(), uiAlignPanelStep(), update_timestep(), and weight_set_exec().
| MINLINE int is_power_of_2_i | ( | int | n | ) |
Definition at line 208 of file math_base_inline.c.
Referenced by blender::LinearAllocator< Allocator >::allocate(), blender::RawAllocator::allocate(), BKE_mesh_calc_edges(), blender::LoadFactor::compute_total_and_usable_slots(), blender::fn::CPPType::CPPType(), findBitIndex(), get_profile_point(), IMB_create_gpu_texture(), blender::tests::is_aligned(), log2_ceil_u(), power_of_2_max_i(), and power_of_2_min_i().
| MINLINE unsigned int log2_ceil_u | ( | unsigned int | x | ) |
Definition at line 261 of file math_base_inline.c.
References is_power_of_2_i(), log2_floor_u(), and x.
Referenced by dof_reduce_pass_init(), and TEST().
| MINLINE unsigned int log2_floor_u | ( | unsigned int | x | ) |
Definition at line 256 of file math_base_inline.c.
References log2_floor_u(), and x.
Referenced by EEVEE_lightbake_filter_diffuse(), EEVEE_lightbake_filter_glossy(), EEVEE_lightcache_create(), EEVEE_lightcache_validate(), log2_ceil_u(), log2_floor_u(), and TEST().
| MINLINE char max_cc | ( | char | a, |
| char | b | ||
| ) |
Definition at line 566 of file math_base_inline.c.
References Freestyle::a.
Definition at line 503 of file math_base_inline.c.
References Freestyle::a.
Definition at line 483 of file math_base_inline.c.
References Freestyle::a.
Referenced by alpha_circle_mask(), alpha_clip_aniso(), annotation_draw_stroke_2d(), annotation_draw_stroke_3d(), annotation_draw_stroke_buffer(), apply_heights_callback(), bake_ibuf_normalize_displacement(), barycentric_weights_v2_clamped(), BB_expand(), BB_expand_with_bb(), bezier_clamp(), bezier_handle_calc_smooth_fcurve(), BKE_bmbvh_overlap(), BKE_curvemapping_changed(), BKE_curvemapping_set_black_white_ex(), BKE_curvemapping_set_defaults(), BKE_curveprofile_move_point(), BKE_defvert_normalize_lock_map(), BKE_fcurve_calc_bounds(), BKE_fcurve_calc_range(), BKE_fcurves_calc_keyed_frames_ex(), BKE_mask_spline_feather_resolution(), BKE_maskrasterize_handle_sample(), BKE_mesh_remap_calc_polys_from_mesh(), BKE_tracking_marker_clamp(), BKE_tracking_max_distortion_delta_across_bound(), blend_color_burn_float(), blend_color_erase_alpha_float(), blend_color_lighten_float(), blend_color_linearburn_float(), blend_color_linearlight_float(), blend_color_pinlight_float(), blend_color_screen_float(), blend_color_sub_float(), blend_color_vividlight_float(), BLI_bvhtree_new(), BLI_convexhull_aabb_fit_hull_2d(), blinn_specular(), block_align_proximity_compute(), bm_edge_seg_isect(), BM_face_splits_check_legal(), brightcontrast_apply_threaded(), brush_edit_apply(), brush_influence_calc(), calc_action_range(), calc_bbox(), calc_bevfac_mapping(), calc_tw_center(), calculate_autoscale_factor(), calculate_collision_balls(), ccd_mesh_make(), ccd_mesh_update(), clipUVData(), cloth_collision_response_static(), cloth_record_result(), cloth_selfcollision_response_static(), computeBindWeights(), create_display_buffer_processor(), cursor_plane_draw(), curvemap_make_table(), damptrack_do_transform(), deformStroke(), dirty_mask_compute_range_reduce(), dirty_mask_compute_range_task_cb(), dist_signed_squared_to_corner_v3v3v3(), do_grab_brush_task_cb_ex(), do_multires_bake(), do_sub_effect_float(), do_vert_pair(), draw_fcurve_curve(), draw_seq_background(), draw_seq_fcurve_overlay(), draw_seq_strip(), draw_seq_waveform_overlay(), DRW_globals_update(), drw_shgroup_bone_envelope(), DRW_view_create_with_zoffset(), dynamic_paint_effect_shrink_cb(), dynamic_paint_paint_particle_cell_point_cb_ex(), dynamic_paint_paint_single_point_cb_ex(), dynamicPaint_mixPaintColors(), ED_mask_draw_region(), ED_uvedit_pack_islands_multi(), ED_view3d_polygon_offset(), edbm_bevel_init(), edbm_bevel_modal(), edbm_inset_init(), edbm_inset_modal(), EEVEE_bloom_init(), EEVEE_depth_of_field_init(), eevee_light_setup(), EEVEE_lightprobes_cube_data_from_object(), EEVEE_lightprobes_grid_data_from_object(), EEVEE_lightprobes_planar_data_from_object(), EEVEE_lights_cache_finish(), EEVEE_occlusion_init(), EEVEE_render_init(), EEVEE_shadows_cascade_add(), EEVEE_shadows_cube_add(), EEVEE_shadows_cube_setup(), EEVEE_volumes_init(), blender::compositor::KeyingClipOperation::executePixel(), blender::compositor::BrightnessOperation::executePixelSampled(), blender::compositor::ConvertHSVToRGBOperation::executePixelSampled(), freetypechar_to_vchar(), get_keyframe_extents(), get_nlastrip_extents(), gizmo_bbone_offset_set(), blender::io::gpencil::GpencilIO::gpencil_3D_point_to_render_space(), gpencil_buffer_add_point(), gpencil_draw_stroke_3d(), gpencil_fill_modal(), gpencil_session_init_fill(), gpencil_vertexpaint_brightness_contrast_exec(), gpencil_vfx_shadow(), gpencil_vfx_wave(), gpencil_zoom_level_set(), GPU_line_width(), gpu_shader_curve_rgb(), gpu_shader_curve_vec(), gpu_shader_valtorgb(), gpu_texture_create_tile_array(), heat_set_H(), IDP_EqualsProperties_ex(), image_camera_background_matrix_get(), imagewraposa(), imagewraposa_aniso(), IMB_colormanagement_setup_glsl_draw_from_space(), blender::compositor::BufferLineAccumulator< fxu, fxv, fyu, fyv >::init_buffer_iterator(), blender::compositor::GaussianAlphaXBlurOperation::initExecution(), blender::compositor::GaussianAlphaYBlurOperation::initExecution(), blender::compositor::GaussianXBlurOperation::initExecution(), blender::compositor::GaussianYBlurOperation::initExecution(), interp_weights_poly_v2(), interp_weights_poly_v3(), isect_seg_seg_v2_point_ex(), layer_bucket_init(), light_attenuation_radius_get(), light_shape_parameters_set(), long_edge_queue_edge_add_recursive(), loopcut_modal(), make_box_union(), max_fff(), max_ffff(), max_v3_v3v3(), meshdeform_ray_tree_intersect(), MOD_solidify_extrude_modifyMesh(), MOD_solidify_nonmanifold_modifyMesh(), modifyMesh(), mouse_on_crns(), neighbor_dirty_mask(), node_update_hidden(), normalization_factor_get(), object_rand_transverts(), object_warp_transverts_minmax_x(), offset_meet(), OVERLAY_bounds(), OVERLAY_gpencil_cache_init(), OVERLAY_grid_init(), OVERLAY_light_cache_populate(), P(), p_smooth(), paint_cursor_context_init(), paint_space_stroke_spacing(), paint_stroke_new(), paint_stroke_update_step(), polyedge_beauty_cost_update_single(), py_bvhtree_overlap(), quad_calc_error(), radial_control_invoke(), RE_GetCameraWindowWithOverscan(), blender::io::alembic::AbcCameraReader::readObjectData(), recalc_face_normals_find_index(), rgb_to_cpack(), RNA_property_float_ui_range(), scan_for_ext_face_forces(), sculpt_brush_dynamic_size_get(), SCULPT_brush_test_cube(), sculpt_expand_mask_update_task_cb(), sculpt_expand_modal(), sculpt_expand_update_max_face_falloff_factor(), sculpt_expand_update_max_vert_falloff_value(), sculpt_gesture_trim_calculate_depth(), sculpt_mask_by_color_final_mask_get(), sculpt_update_cache_invariants(), SimpleDeformModifier_do(), smart_uv_project_calculate_project_normals(), smooth_view_rect_to_fac(), smoothminf(), snap_to_superellipsoid(), softbody_apply_forces(), softbody_step(), sphclassical_calc_dens(), splineik_evaluate_bone(), spot_angle_fit_single_face(), square_roughness_node_insert(), statvis_calc_distort(), statvis_calc_sharp(), stitch_island_calculate_edge_rotation(), stitch_island_calculate_vert_rotation(), stretchto_evaluate(), svd_m4(), texture_rgb_blend(), tonemapmodifier_apply(), tonemapmodifier_apply_threaded_simple(), track_mouse_area(), tracking_check_marker_margin(), transformEvent(), blender::nodes::try_dispatch_float_math_fl3_fl3_to_fl3(), ui_block_bounds_calc(), ui_block_bounds_calc_text(), ui_but_range_set_soft(), ui_do_but_NUM(), ui_draw_but_CURVE(), ui_draw_but_CURVEPROFILE(), UI_draw_roundbox_shade_x(), ui_menu_scroll_apply_offset_y(), ui_popup_block_position(), ui_tooltip_create_with_data(), blender::compositor::ProjectorLensDistortionOperation::updateDispersion(), vertex_color_brightness_contrast_exec(), vgroup_normalize(), view3d_from_minmax(), view3d_localview_init(), view3d_zoom_border_exec(), viewer_border_exec(), viewzoom_scale_value(), voronoi_finishEdge(), voronoi_getXOfEdge(), widget_scroll(), WIDGETGROUP_empty_image_refresh(), WM_window_set_dpi(), workbench_cavity_data_update(), workbench_volume_modifier_cache_populate(), workbench_volume_object_cache_populate(), wrapped_lighting(), wval_screen(), and zspan_scanconvert().
Definition at line 521 of file math_base_inline.c.
References Freestyle::a, Freestyle::c, and max_ff().
Referenced by apply_objects_internal(), BKE_fcurve_calc_bounds(), BKE_mesh_mirror_apply_mirror_on_axis_for_modifier(), BKE_pbvh_bmesh_node_raycast_detail(), clamp_axis_max_v3(), cube_project_exec(), dynamicPaint_prepareEffectStep(), eevee_light_setup(), EEVEE_lightprobes_grid_data_from_object(), EEVEE_lights_cache_finish(), fast_ray_nearest_hit(), getSurfaceDimension(), imagewrap(), imagewraposa(), imagewraposa_aniso(), max_ffff(), OVERLAY_bounds(), p_chart_lscm_solve(), position_tail_on_spline(), rgb_to_hsl(), sb_detect_face_collisionCached(), sb_detect_face_pointCached(), sculpt_detail_flood_fill_exec(), surfaceGenerateGrid(), view3d_from_minmax(), view3d_localview_init(), workbench_volume_modifier_cache_populate(), and workbench_volume_object_cache_populate().
Definition at line 539 of file math_base_inline.c.
References Freestyle::a, Freestyle::c, max_ff(), and max_fff().
Referenced by node_link_bezier_handles().
| MINLINE int max_ii | ( | int | a, |
| int | b | ||
| ) |
Definition at line 512 of file math_base_inline.c.
References Freestyle::a.
Referenced by accessor_get_ibuf(), actionzone_modal(), animviz_calc_motionpaths(), annotation_draw_eraser(), area_move_set_limits(), azone_clipped_rect_calc(), best_socket_input(), bevel_build_cutoff(), BKE_autotrack_context_sync(), BKE_curve_material_index_validate(), BKE_icon_geom_rasterize(), BKE_mask_get_duration(), BKE_mask_spline_resolution(), BKE_mesh_remap_calc_loops_from_mesh(), BKE_mesh_remap_calc_polys_from_mesh(), BKE_mesh_validate_material_indices(), BKE_nurb_order_clamp_u(), BKE_nurb_order_clamp_v(), BKE_pbvh_build_grids(), BKE_render_num_threads(), BKE_sculpt_mask_layers_ensure(), BKE_tracking_reconstruction_context_new(), BKE_tracking_tracks_first_last_frame_minmax(), blend_color_burn_byte(), blend_color_erase_alpha_byte(), blend_color_lighten_byte(), blend_color_linearburn_byte(), blend_color_linearlight_byte(), blend_color_pinlight_byte(), blend_color_screen_byte(), blend_color_sub_byte(), blend_color_vividlight_byte(), BLI_bitmap_draw_2d_poly_v2i_n(), BLI_ghash_calc_quality_ex(), bm_edgering_pair_subdiv(), BM_mesh_bevel(), BM_mesh_decimate_dissolve_ex(), bmo_create_grid_exec(), bmo_unsubdivide_exec(), calculate_autoscale_factor(), change_spacing_exec(), circle_select_exec(), clamp_i(), clip_set_scene_frames_exec(), cloth_record_result(), colorband_init_from_table_rgba_simple(), console_copy_exec(), cp_cu_key(), create_primitive_from_points(), createTransSeqData(), curve_decimate_exec(), curvemap_buttons_layout(), CurveProfile_buttons_layout(), deformStroke(), do_sub_effect_byte(), do_text_effect(), dof_reduce_pass_init(), dopesheet_view_all_exec(), draw_geometry_execute(), draw_seq_backdrop(), draw_seq_fcurve_overlay(), draw_seq_strips(), draw_spline_curve(), drawmeta_contents(), DRW_cache_gpencil_sbuffer_stroke_data_get(), DRW_curve_material_count_get(), DRW_hair_material_count_get(), DRW_hair_update(), DRW_metaball_material_count_get(), DRW_pointcloud_material_count_get(), DRW_volume_material_count_get(), ED_curve_editfont_select_pick(), ED_gpencil_brush_draw_eraser(), ED_imapaint_dirty_region(), ED_info_draw_stats(), ed_preview_draw_rect(), ED_sculpt_face_sets_find_next_available_id(), ED_view3d_backbuf_sample_size_clamp(), ED_view3d_depth_read_cached(), ED_view3d_update_viewmat(), EEVEE_lightbake_update_world_quick(), EEVEE_lightprobes_cache_finish(), eevee_lightprobes_extract_from_cache(), EEVEE_motion_blur_cache_init(), EEVEE_motion_blur_init(), EEVEE_render_init(), eevee_render_to_image(), EEVEE_screen_raytrace_init(), EEVEE_shadows_update(), EEVEE_temporal_sampling_sample_count_get(), EEVEE_volumes_init(), blender::compositor::GaussianAlphaXBlurOperation::executePixel(), blender::compositor::GaussianAlphaYBlurOperation::executePixel(), blender::compositor::GaussianBokehBlurOperation::executePixel(), blender::compositor::GaussianXBlurOperation::executePixel(), blender::compositor::GaussianYBlurOperation::executePixel(), file_smoothscroll_invoke(), filelist_file_cache_block(), gesture_box_apply_rect(), get_active_fcurve_keyframe_edit(), blender::gpu::GLShaderInterface::GLShaderInterface(), gpencil_buffer_add_stroke(), gpencil_draw_eraser(), gpencil_draw_strokes(), gpencil_erase_processed_area(), gpencil_material_pool_create(), gpencil_render_offscreen(), gpencil_vfx_blur(), gpencil_vfx_glow(), gpencil_vfx_rim(), gpencil_vfx_shadow(), gpu_batch_preset_panel_drag_widget(), GPU_offscreen_create(), gpu_texture_create_tile_array(), gpu_texture_update_from_ibuf(), image_get_udim(), image_paint_partial_redraw_expand(), image_sample_apply(), image_view_all(), IMB_create_gpu_texture(), implicit_needed_branches(), blender::gpu::Texture::init_cubemap(), irradiance_pool_size_get(), lineart_gpencil_generate(), M_Geometry_interpolate_bezier(), make_edges_mdata_extend(), Matrix_str(), max_iii(), max_iiii(), mcol_screen(), mesh_join_offset_face_sets_ID(), blender::gpu::Texture::mip_depth_get(), blender::gpu::Texture::mip_height_get(), blender::gpu::Texture::mip_size_get(), blender::gpu::Texture::mip_width_get(), MOD_meshcache_calc_range(), motion_path_cache(), motion_path_get_frame_range_to_draw(), motionpath_calculate_update_range(), motionpath_get_global_framerange(), node_socket_calculate_height(), outliner_data_api_buttons_start_x(), panel_calculate_size_recursive(), partial_redraw_array_merge(), pipe_adj_vmesh(), planar_pool_ensure_alloc(), preview_prepare_scene(), psys_get_pointcache_start_end(), psys_thread_context_init_path(), pygpu_texture__tp_new(), radial_control_invoke(), RE_parts_clamp(), blender::gpu::FrameBuffer::recursive_downsample(), region_rect_recursive(), RNA_property_int_ui_range(), screen_animation_step_invoke(), sculpt_expand_modal(), sculpt_face_sets_randomize_colors_exec(), SEQ_render_give_ibuf(), seq_time_update_meta_strip(), SEQ_time_update_sequence(), SEQ_transform_get_left_handle_frame(), SEQ_transform_seqbase_shuffle_ex(), seq_update_meta_disp_range(), seq_update_sound_bounds_recursive_impl(), SeqTransDataBounds(), sequencer_image_seq_get_minmax_frame(), sequencer_meta_make_exec(), sequencer_select_side_exec(), sequencer_set_range_to_strips_exec(), sequencer_view_selected_exec(), set_profile_spacing(), shuffle_seq_time_offset_test(), SIM_hair_volume_add_segment(), socket_best_match(), svd_m4(), task_parallel_calc_chunk_size(), text_scroll_state_init(), textview_draw_sel(), trace_start_job(), tracking_dopesheet_calc_coverage(), tracking_dopesheet_channels_segments_calc(), ui_do_but_NUM(), ui_item_rna_size(), ui_litem_estimate_column_flow(), ui_litem_estimate_grid_flow(), ui_litem_grid_flow_compute(), ui_litem_layout_absolute(), ui_litem_layout_radial(), ui_panels_size(), ui_text_clip_cursor(), ui_text_clip_middle(), ui_text_clip_middle_protect_right(), ui_text_clip_right_label(), ui_tooltip_create_with_data(), uiItemFullR(), uilist_prepare(), uiTemplateReportsBanner(), unit_as_string_split_pair(), widget_scroll(), wm_main_playanim_intern(), WM_window_set_dpi(), workbench_cavity_samples_ubo_ensure(), workbench_cavity_total_sample_count(), workbench_dof_cache_init(), workbench_dof_engine_init(), workbench_draw_scene(), workbench_render(), workbench_shadow_object_shadow_distance(), blender::compositor::zbuf_fill_in_rgba(), and zspan_scanconvert().
| MINLINE int max_iii | ( | int | a, |
| int | b, | ||
| int | c | ||
| ) |
Definition at line 530 of file math_base_inline.c.
References Freestyle::a, Freestyle::c, and max_ii().
Referenced by blo_do_versions_260(), max_iiii(), SEQ_time_update_sequence(), and sequencer_add_effect_strip_exec().
| MINLINE int max_iiii | ( | int | a, |
| int | b, | ||
| int | c, | ||
| int | d | ||
| ) |
Definition at line 548 of file math_base_inline.c.
References Freestyle::a, Freestyle::c, max_ii(), and max_iii().
Referenced by _bli_array_iter_spiral_square().
| MINLINE size_t max_zz | ( | size_t | a, |
| size_t | b | ||
| ) |
Definition at line 557 of file math_base_inline.c.
References Freestyle::a.
Referenced by clamp_z().
| MINLINE char min_cc | ( | char | a, |
| char | b | ||
| ) |
Definition at line 562 of file math_base_inline.c.
References Freestyle::a.
Definition at line 499 of file math_base_inline.c.
References Freestyle::a.
Definition at line 479 of file math_base_inline.c.
References Freestyle::a.
Referenced by alpha_circle_mask(), annotation_draw_apply(), apply_heights_callback(), area_draw_azone_fullscreen(), backimage_fit_exec(), BB_expand(), BB_expand_with_bb(), bezier_clamp(), bezier_handle_calc_smooth_fcurve(), BKE_curvemapping_changed(), BKE_curvemapping_set_defaults(), BKE_curveprofile_move_point(), BKE_fcurve_calc_bounds(), BKE_fcurve_calc_range(), BKE_maskrasterize_handle_sample(), BKE_tracking_marker_clamp(), blend_color_add_alpha_float(), blend_color_darken_float(), blend_color_dodge_float(), blend_color_hardlight_float(), blend_color_linearlight_float(), blend_color_overlay_float(), blend_color_pinlight_float(), blend_color_vividlight_float(), BLI_convexhull_aabb_fit_hull_2d(), blo_do_versions_270(), bm_decim_build_edge_cost_single__topology(), bm_decim_build_edge_cost_single_squared__topology(), bm_edge_seg_isect(), bmo_create_uvsphere_exec(), bmo_dissolve_degenerate_exec(), bmo_dissolve_limit_exec(), boid_body(), calc_action_range(), calc_bevfac_mapping(), blender::compositor::calc_ray_shift(), calc_tw_center(), calctrackballvec(), calculate_autoscale_factor(), calculate_collision_balls(), ccd_mesh_make(), ccd_mesh_update(), check_zone(), clip_view_calculate_view_selection(), clipUVData(), cloth_collision_response_static(), cloth_record_result(), cloth_selfcollision_response_static(), computeAngularWeight(), computeBindWeights(), convert_tree(), curvemap_make_table(), damptrack_do_transform(), dirty_mask_compute_range_reduce(), dirty_mask_compute_range_task_cb(), dist_signed_squared_to_corner_v3v3v3(), do_clay_brush(), do_multires_bake(), do_projectpaint_thread(), do_snake_hook_brush_task_cb_ex(), doEdgeSlide(), downsample_planar(), draw_fcurve_curve(), draw_keylist(), draw_marker_slide_zones(), draw_seq_background(), draw_seq_fcurve_overlay(), draw_seq_strip(), draw_seq_waveform_overlay(), dynamic_paint_effect_drip_cb(), dynamic_paint_effect_spread_cb(), ED_node_link_intersect_test(), ED_view3d_backbuf_sample_size_clamp(), ED_view3d_update_viewmat(), EEVEE_depth_of_field_init(), EEVEE_lightprobes_planar_data_from_object(), EEVEE_shadows_cube_setup(), EEVEE_volumes_init(), blender::compositor::VariableSizeBokehBlurOperation::executeOpenCL(), blender::compositor::KeyingClipOperation::executePixel(), blender::compositor::LuminanceMatteOperation::executePixelSampled(), blender::compositor::MixDarkenOperation::executePixelSampled(), flyApply(), flyEvent(), geodesic_distance_propagate_across_triangle(), get_keyframe_extents(), get_nlastrip_extents(), get_shortest_pattern_side(), getArrowEndPoint(), gpencil_convert_layer_exec(), gpencil_fill_modal(), gpencil_session_init_fill(), gpencil_zoom_level_set(), gpu_texture_create_tile_array(), graph_key_shortest_dist(), image_camera_background_matrix_get(), image_view_all(), IMB_rectblend(), immDrawBorderCorners(), isect_seg_seg_v2_point_ex(), knife_snap_size(), layer_bucket_init(), light_shape_parameters_set(), line_rect_clip(), make_box_union(), merge_frame_corners(), min_fff(), min_ffff(), mix_normals(), MOD_solidify_extrude_modifyMesh(), modifyMesh(), node_update_basis(), normalization_factor_get(), object_warp_transverts_minmax_x(), OVERLAY_grid_init(), pipe_adj_vmesh(), quad_calc_error(), radial_control_invoke(), ramp_blend(), rgb_to_hsl(), rgb_to_hsv(), RNA_property_float_ui_range(), RVAddBitmaps_float(), RVIsolateHighlights_float(), blender::gpu::GLTexture::samplers_update(), sb_detect_edge_collisionCached(), scan_for_ext_face_forces(), scanfill(), SCULPT_brush_test_cube(), sculpt_expand_initialize_from_face_set_boundary(), sculpt_expand_spherical_falloff_create(), sculpt_gesture_trim_calculate_depth(), sculpt_mask_by_color_final_mask_get(), sequence_handle_size_get_clamped(), sequencer_view_all_preview_exec(), sima_zoom_set_from_bounds(), SimpleDeformModifier_do(), smooth_view_rect_to_fac(), smoothminf(), snap_to_superellipsoid(), softbody_apply_forces(), softbody_step(), sphclassical_calc_dens(), spline_under_mouse_get(), splineik_evaluate_bone(), spot_angle_fit_single_face(), stitch_island_calculate_edge_rotation(), stitch_island_calculate_vert_rotation(), stretchto_evaluate(), texture_rgb_blend(), texture_value_blend(), transformEvent(), blender::nodes::try_dispatch_float_math_fl3_fl3_to_fl3(), ui_but_range_set_soft(), ui_do_animate(), ui_do_but_NUM(), ui_draw_but_CURVE(), ui_draw_but_CURVEPROFILE(), ui_draw_but_UNITVEC(), UI_draw_roundbox_shade_x(), ui_menu_scroll_apply_offset_y(), ui_numedit_begin(), ui_numedit_but_HISTOGRAM(), ui_numedit_but_HSVCIRCLE(), ui_numedit_set_active(), UI_text_clip_middle_ex(), UI_tooltip_create_from_button(), ui_update_flexible_spacing(), unified_findnearest(), blender::compositor::ProjectorLensDistortionOperation::updateDispersion(), uv_rip_single_from_loop(), view3d_center_camera_exec(), view3d_ruler_pick(), view_all_exec(), viewer_border_exec(), voronoi_finishEdge(), voronoi_getXOfEdge(), voxel_size_edit_modal(), walkEvent(), wval_blend(), wval_colordodge(), blender::compositor::zbuf_add_to_span(), zbuf_add_to_span(), and zspan_scanconvert().
Definition at line 517 of file math_base_inline.c.
References Freestyle::a, Freestyle::c, and min_ff().
Referenced by BKE_fcurve_calc_bounds(), dynamic_paint_effect_spread_cb(), blender::compositor::KeyingOperation::executePixelSampled(), find_nearest_track(), gizmo_ruler_draw(), imagewraposa(), imagewraposa_aniso(), maskmodifier_apply_threaded(), min_ffff(), project_bucket_clip_face(), rgb_to_hsl(), sb_detect_face_collisionCached(), sb_detect_face_pointCached(), and view3d_ruler_pick().
Definition at line 535 of file math_base_inline.c.
References Freestyle::a, Freestyle::c, min_ff(), and min_fff().
Referenced by constrain_rgb(), dist_to_crns(), dist_to_crns_abs(), dist_to_rect(), node_link_bezier_handles(), and track_mouse_area().
| MINLINE int min_ii | ( | int | a, |
| int | b | ||
| ) |
Definition at line 508 of file math_base_inline.c.
References Freestyle::a.
Referenced by accessor_get_ibuf(), animviz_calc_motionpaths(), area_move_set_limits(), azone_clipped_rect_calc(), BKE_autotrack_context_sync(), BKE_blendfile_userdef_from_defaults(), BKE_keyblock_convert_to_curve(), BKE_keyblock_convert_to_lattice(), BKE_keyblock_convert_to_mesh(), BKE_mask_spline_feather_collapse_inner_loops(), BKE_maskrasterize_handle_init(), BKE_mesh_orco_verts_get(), BKE_mesh_remap_calc_edges_from_mesh(), BKE_tracking_get_projection_matrix(), BKE_tracking_reconstruction_context_new(), BKE_tracking_tracks_first_last_frame_minmax(), blend_color_add_alpha_byte(), blend_color_add_byte(), blend_color_darken_byte(), blend_color_dodge_byte(), blend_color_hardlight_byte(), blend_color_linearlight_byte(), blend_color_overlay_byte(), blend_color_pinlight_byte(), blend_color_vividlight_byte(), BLI_bitmap_draw_2d_poly_v2i_n(), blo_do_versions_280(), BM_mesh_bm_from_me(), bm_mesh_edges_select_get_n(), bm_mesh_verts_select_get_n(), bmo_bisect_plane_exec(), brush_painter_imbuf_partial_update(), brush_painter_mask_imbuf_partial_update(), calculate_autoscale_factor(), check_zone(), clamp_i(), cloth_record_result(), colorband_init_from_table_rgba_simple(), console_copy_exec(), cp_cu_key(), createTransSeqData(), CurveProfile_buttons_layout(), do_add_effect_byte(), do_drop_effect_byte(), do_drop_effect_float(), dof_dilate_tiles_pass_draw(), dopesheet_view_all_exec(), draw_movieclip_cache(), draw_seq_strips(), drawmeta_contents(), DRW_hair_update(), ED_imapaint_dirty_region(), ED_region_header_layout(), ED_region_info_draw_multiline(), ED_region_panels_layout_ex(), ED_view3d_depth_read_cached(), edbm_fill_grid_prepare(), eevee_lightprobes_extract_from_cache(), euler_filter_perform_filter(), eval_table(), blender::compositor::GaussianAlphaXBlurOperation::executePixel(), blender::compositor::GaussianAlphaYBlurOperation::executePixel(), blender::compositor::GaussianBokehBlurOperation::executePixel(), blender::compositor::GaussianXBlurOperation::executePixel(), blender::compositor::GaussianYBlurOperation::executePixel(), extract_tris_init(), extract_tris_iter_looptri_bm(), extract_tris_iter_looptri_mesh(), file_draw_list(), filelist_file_cache_block(), freeSeqData(), gesture_box_apply_rect(), get_render_subsurf_level(), gpencil_buffer_add_stroke(), gpencil_vfx_blur(), gpencil_vfx_glow(), gpencil_vfx_rim(), gpencil_vfx_shadow(), GPU_batch_draw_advanced(), GPU_texture_size_with_limit(), gpu_texture_update_from_ibuf(), image_paint_partial_redraw_expand(), image_sample_apply(), blender::compositor::GaussianAlphaXBlurOperation::initExecution(), blender::compositor::GaussianAlphaYBlurOperation::initExecution(), blender::compositor::GaussianXBlurOperation::initExecution(), blender::compositor::GaussianYBlurOperation::initExecution(), irradiance_pool_size_get(), mathutils_matrix_col_get(), mathutils_matrix_col_set(), Matrix_to_NxN(), matrix_unit_internal(), mcol_colordodge(), mcol_hardlight(), mcol_overlay(), mesh_extract_iter(), min_iii(), min_iiii(), MOD_meshcache_calc_range(), motionpath_calculate_update_range(), motionpath_get_global_framerange(), multibuf(), node_update_basis(), non_recursive_bvh_div_nodes(), normalization_factor_get(), partial_redraw_array_merge(), prefetch_get_final_frame(), processor_apply_scanline_func(), psys_get_pointcache_start_end(), psys_tasks_create(), radial_control_invoke(), RE_parts_clamp(), blender::gpu::FrameBuffer::recursive_downsample(), RNA_property_int_ui_range(), round_box__edges(), seq_time_update_meta_strip(), SEQ_time_update_sequence(), SEQ_transform_get_right_handle_frame(), seq_update_meta_disp_range(), seq_update_sound_bounds_recursive_impl(), SeqTransDataBounds(), sequencer_image_seq_get_minmax_frame(), sequencer_meta_make_exec(), sequencer_select_side_exec(), sequencer_set_range_to_strips_exec(), sequencer_view_selected_exec(), shuffle_seq_time_offset_test(), SIM_hair_volume_add_segment(), startConstraint(), svd_m4(), task_parallel_iterator_do(), textview_draw_sel(), tile_remove_exec(), track_init_markers(), tracking_dopesheet_calc_coverage(), ui_block_func_POPUP(), ui_but_drag_init(), ui_but_v3_get(), ui_but_v3_set(), ui_do_but_NUM(), ui_draw_but_HSVCIRCLE(), ui_hsvcircle_pos_from_vals(), ui_hsvcircle_vals_from_pos(), ui_item_array(), ui_litem_estimate_absolute(), ui_litem_estimate_column_flow(), ui_litem_estimate_grid_flow(), ui_litem_layout_absolute(), ui_litem_layout_column_flow(), ui_litem_layout_grid_flow(), ui_litem_layout_radial(), ui_litem_layout_row(), ui_panels_size(), ui_searchbox_region_draw_cb__operator(), ui_tooltip_create_with_data(), uilist_prepare(), uiTemplateReportsBanner(), widget_draw_text(), widget_numbut_draw(), WM_modalkeymap_operator_items_to_string_buf(), WM_operator_properties_checker_interval(), workbench_antialiasing_sample_count_get(), workbench_antialiasing_setup(), workbench_cavity_total_sample_count(), blender::compositor::zbuf_fill_in_rgba(), and zspan_scanconvert().
| MINLINE int min_iii | ( | int | a, |
| int | b, | ||
| int | c | ||
| ) |
Definition at line 526 of file math_base_inline.c.
References Freestyle::a, Freestyle::c, and min_ii().
Referenced by maskmodifier_apply_threaded(), min_iiii(), parent_set_vert_find(), and SEQ_time_update_sequence().
| MINLINE int min_iiii | ( | int | a, |
| int | b, | ||
| int | c, | ||
| int | d | ||
| ) |
Definition at line 544 of file math_base_inline.c.
References Freestyle::a, Freestyle::c, min_ii(), and min_iii().
Referenced by _bli_array_iter_spiral_square().
| MINLINE size_t min_zz | ( | size_t | a, |
| size_t | b | ||
| ) |
Definition at line 553 of file math_base_inline.c.
References Freestyle::a.
Referenced by add_huff_table(), BLI_system_memory_max_in_megabytes_int(), clamp_z(), max_memory_in_megabytes_int(), and ui_apply_but_undo().
| MINLINE int mod_i | ( | int | i, |
| int | n | ||
| ) |
modulo that handles negative numbers, works the same as Python's.
Definition at line 388 of file math_base_inline.c.
Referenced by BKE_nurb_index_from_uv(), BKE_scene_frame_snap_by_seconds(), bridge_loop_pair(), curve_dissolve_exec(), edbm_fill_grid_prepare(), mat3_align_axis_to_v3(), project_paint_PickColor(), project_paint_uvpixel_init(), RNA_property_enum_step(), setup_vertex_point(), smooth_exec(), and WM_operator_properties_checker_interval_from_op().
Definition at line 49 of file math_base_inline.c.
References x.
Referenced by BKE_brush_gen_radial_control_imbuf(), BKE_curveprofile_update(), BKE_kelvinlet_grab_triscale(), blender::nodes::do_equal_operation_color4f(), blender::nodes::do_equal_operation_float3(), blender::nodes::do_not_equal_operation_color4f(), blender::nodes::do_not_equal_operation_float3(), do_snake_hook_brush_task_cb_ex(), edituv_get_edituv_stretch_angle(), init_kelvinlet_grab(), kelvinlet_scale(), kelvinlet_twist(), mesh_filter_sharpen_init(), mesh_filter_task_cb(), pow3f(), pow4f(), pow7f(), SCULPT_boundary_automasking_init(), sculpt_update_cache_paint_variants(), sphclassical_force_cb(), ui_numedit_but_HISTOGRAM(), voxel_size_edit_modal(), and WM_gesture_lasso_modal().
Definition at line 53 of file math_base_inline.c.
Referenced by BKE_brush_curve_strength(), init_kelvinlet_grab(), kelvinlet_scale(), kelvinlet_twist(), pow7f(), samevolume_evaluate(), sculpt_brush_dynamic_size_get(), sphclassical_density_accum_cb(), sphclassical_force_cb(), and ui_hsvcircle_pos_from_vals().
Definition at line 57 of file math_base_inline.c.
Referenced by brush_strength(), cloth_apply_vgroup(), pow5f(), sphclassical_density_accum_cb(), and sphclassical_force_cb().
Definition at line 65 of file math_base_inline.c.
References pow2f(), pow3f(), and x.
Referenced by sphclassical_force_cb().
| int pow_i | ( | int | base, |
| int | exp | ||
| ) |
Definition at line 30 of file math_base.c.
References BLI_assert, KDL::exp(), and result.
Referenced by multires_create_grids_in_unsubdivided_base_mesh(), and paint_proj_new_stroke().
Definition at line 203 of file math_base_inline.c.
References ceil(), KDL::log(), M_LN2, and KDL::pow().
Referenced by clip_view_calculate_view_selection(), image_view_all(), sequencer_view_all_preview_exec(), and view_all_exec().
| MINLINE int power_of_2_max_i | ( | int | n | ) |
Definition at line 213 of file math_base_inline.c.
References is_power_of_2_i().
Referenced by checker_board_color_fill(), parse_alloc_ops(), and set_profile_spacing().
| MINLINE unsigned int power_of_2_max_u | ( | unsigned int | x | ) |
Definition at line 235 of file math_base_inline.c.
References x.
Referenced by blender::IndexRange::as_span(), and BLI_array_store_at_size_ensure().
| MINLINE int power_of_2_min_i | ( | int | n | ) |
Definition at line 226 of file math_base_inline.c.
References is_power_of_2_i().
Referenced by blender::bke::calc_edges::get_parallel_maps_count(), and smaller_power_of_2_limit().
| MINLINE unsigned int power_of_2_min_u | ( | unsigned int | x | ) |
Definition at line 246 of file math_base_inline.c.
References x.
Definition at line 189 of file math_base_inline.c.
Referenced by lineart_bounding_area_next(), lineart_LineIntersectTest2d(), lineart_point_on_line_segment(), and lineart_triangle_edge_image_space_occlusion().
Definition at line 183 of file math_base_inline.c.
Definition at line 317 of file math_base_inline.c.
References _round_db_impl, and Freestyle::a.
Definition at line 342 of file math_base_inline.c.
References _round_clamp_db_impl, and Freestyle::a.
Definition at line 321 of file math_base_inline.c.
References _round_db_impl, and Freestyle::a.
Referenced by BKE_scene_frame_snap_by_seconds().
Definition at line 350 of file math_base_inline.c.
References _round_clamp_db_impl, and Freestyle::a.
Referenced by ui_but_value_set().
Definition at line 319 of file math_base_inline.c.
References _round_db_impl, and Freestyle::a.
Definition at line 346 of file math_base_inline.c.
References _round_clamp_db_impl, and Freestyle::a.
Referenced by ui_but_value_set().
Definition at line 318 of file math_base_inline.c.
References _round_db_impl, and Freestyle::a.
Definition at line 344 of file math_base_inline.c.
References _round_clamp_db_impl, and Freestyle::a.
Referenced by ui_but_value_set().
Definition at line 322 of file math_base_inline.c.
References _round_db_impl, and Freestyle::a.
Definition at line 351 of file math_base_inline.c.
References _round_clamp_db_impl, Freestyle::a, and UINT_MAX.
Definition at line 320 of file math_base_inline.c.
References _round_db_impl, and Freestyle::a.
Definition at line 348 of file math_base_inline.c.
References _round_clamp_db_impl, and Freestyle::a.
Definition at line 310 of file math_base_inline.c.
References _round_fl_impl, and Freestyle::a.
Definition at line 330 of file math_base_inline.c.
References _round_clamp_fl_impl, and Freestyle::a.
Definition at line 314 of file math_base_inline.c.
References _round_fl_impl, and Freestyle::a.
Referenced by actkeys_framejump_exec(), ANIM_channel_draw_widgets(), area_move_apply_do(), area_snap_calc_location(), BLI_timecode_string_from_time(), BLI_timecode_string_from_time_seconds(), change_frame_apply(), draw_background(), ED_annotation_draw_view3d(), ED_area_global_max_size_y(), ED_area_global_min_size_y(), ED_area_global_size_y(), ED_markers_find_nearest_marker_time(), ED_markers_post_apply_transform(), ED_region_panel_category_gutter_calc_rect(), file_draw_list(), file_draw_string(), file_draw_string_multiline(), flushTransIntFrameActionData(), flushTransSeq(), frame_from_event(), gather_frames_to_render_for_adt(), gpu_batch_preset_panel_drag_widget(), graphkeys_framejump_exec(), graphkeys_previewrange_exec(), graphview_cursor_apply(), imagewraposa_aniso(), blender::compositor::BlurBaseOperation::initExecution(), MOD_meshcache_calc_range(), nlaedit_previewrange_exec(), node_draw_hidden(), panel_draw_aligned_widgets(), pose_propagate_fcurve(), previewrange_define_exec(), blender::nodes::random_value_in_range(), sequencer_slip_modal(), snapSequenceBounds(), transform_convert_sequencer_channel_clamp(), ui_do_drag(), ui_numedit_but_NUM(), ui_numedit_but_SLI(), UI_panel_category_draw_all(), uiAlignPanelStep(), uilist_resize_update_cb(), widget_draw_text_icon(), and wm_gesture_evaluate().
Definition at line 338 of file math_base_inline.c.
References _round_clamp_fl_impl, and Freestyle::a.
Referenced by ui_do_but_NUM().
Definition at line 312 of file math_base_inline.c.
References _round_fl_impl, and Freestyle::a.
Referenced by screen_geom_find_area_split_point(), and screen_geom_vertices_scale_pass().
Definition at line 334 of file math_base_inline.c.
References _round_clamp_fl_impl, and Freestyle::a.
Definition at line 311 of file math_base_inline.c.
References _round_fl_impl, and Freestyle::a.
Referenced by calculate_average_color(), do_vpaint_brush_blur_task_cb_ex(), and mcol_blend().
Definition at line 332 of file math_base_inline.c.
References _round_clamp_fl_impl, and Freestyle::a.
Referenced by layerInterp_mcol(), layerInterp_mloopcol(), and blender::bke::set_crease().
Definition at line 315 of file math_base_inline.c.
References _round_fl_impl, and Freestyle::a.
Definition at line 339 of file math_base_inline.c.
References _round_clamp_fl_impl, Freestyle::a, and UINT_MAX.
Definition at line 313 of file math_base_inline.c.
References _round_fl_impl, and Freestyle::a.
Definition at line 336 of file math_base_inline.c.
References _round_clamp_fl_impl, and Freestyle::a.
Definition at line 101 of file math_base_inline.c.
References acosf, M_PI, and UNLIKELY.
Referenced by accumulate_vertex_normals_poly_v3(), accumulate_vertex_normals_tri_v3(), accumulate_vertex_normals_v3(), angle_normalized_qt(), angle_signed_normalized_qt(), basic_rotate(), BKE_lnor_space_define(), bm_loop_normal_accum(), bm_mesh_calc_uvs_sphere_face(), bm_mesh_loops_calc_normals(), boid_body(), cache_key_incremental_rotation(), calc_bevel_sin_cos(), do_guides(), dvar_eval_rotDiff(), effector_falloff(), map_to_sphere(), mat3_to_quat_is_ok(), mesh_calc_normals_poly_prepare_cb(), mesh_verts_calc_normals_accum_cb(), modifyMesh(), pow_qt_fl_normalized(), proj_paint_state_cavity_init(), psys_thread_create_path(), Quaternion_angle_get(), split_loop_nor_fan_do(), tri_to_quat_ex(), ui_but_isect_pie_seg(), vec_to_quat(), and Vector_angle().
Definition at line 137 of file math_base_inline.c.
References acosf, M_PI, and UNLIKELY.
Referenced by BKE_lnor_space_custom_normal_to_data(), BKE_lnor_space_define(), form_factor_quad(), hair_random(), neighbor_dirty_mask(), and quaternion_to_angles().
Definition at line 114 of file math_base_inline.c.
References asinf, M_PI, and UNLIKELY.
Referenced by angle_normalized_v2v2(), and angle_normalized_v3v3().
Definition at line 150 of file math_base_inline.c.
References asinf, M_PI, and UNLIKELY.
Referenced by quaternion_to_angles().
Definition at line 127 of file math_base_inline.c.
References sqrtf, and UNLIKELY.
Referenced by boid_body(), and boid_brain().
Definition at line 163 of file math_base_inline.c.
Definition at line 635 of file math_base_inline.c.
Referenced by BKE_texture_mapping_init(), compatible_signf(), TextureMapping::compute_transform(), computeBindWeights(), constraintSizeLim(), nonzerof(), shrinkwrap_snap_with_side(), svm_node_set_bump(), and volume_henyey_greenstein_setup().
Definition at line 666 of file math_base_inline.c.
References Freestyle::a.
Referenced by bm_loop_collapse_is_degenerate(), gizmo_cage2d_modal(), gizmo_cage3d_modal(), and vgroup_smooth_subset().
Definition at line 653 of file math_base_inline.c.
References Freestyle::a, and eps.
Referenced by bm_edge_calc_rotate_beauty__area().
Definition at line 83 of file math_base_inline.c.
References KDL::exp(), KDL::log(), and UNLIKELY.
Referenced by solve_cubic().
Definition at line 70 of file math_base_inline.c.
References KDL::exp(), float(), KDL::log(), and UNLIKELY.
Referenced by ui_numedit_but_HSVCIRCLE().
Definition at line 96 of file math_base_inline.c.
References sqrtf.
Referenced by camera_frame_fit_calc_from_data(), mesh_calc_eigen_matrix(), and modifyMesh().
Definition at line 440 of file math_base_inline.c.
References Freestyle::a.
Definition at line 435 of file math_base_inline.c.
References Freestyle::a.
Referenced by BKE_brush_jitter_pos(), bm_edge_symmetry_map(), bm_edgexedge_isect_impl(), bm_edgexvert_isect_impl(), BM_mesh_intersect_edges(), bmo_planar_faces_exec(), calc_duplicates_fast(), calctrackballvec(), cloth_collision_response_static(), cloth_selfcollision_response_static(), contarget_get_mesh_mat(), cursor_plane_draw(), curve_draw_event_add(), curve_draw_exec_precalc(), curve_draw_modal(), deformStroke(), deformVerts_do(), dist_squared_ray_to_seg_v3(), draw_culling_sphere_test(), dynamic_paint_find_island_border(), ED_armature_from_edit(), EDBM_verts_mirror_cache_begin_ex(), eevee_light_setup(), EEVEE_lightbake_filter_diffuse(), EEVEE_lightbake_filter_glossy(), EEVEE_lightprobes_cache_finish(), EEVEE_lights_cache_finish(), execute_posetree(), gizmo_arrow_test_select(), gpencil_primitive_update_strokes(), gpencil_stroke_addpoint(), isect_seg_seg_v2_point_ex(), len_squared_vnvn(), long_edge_queue_edge_add_recursive(), mat4_to_dquat(), mesh_edges_spherecast(), mesh_remove_doubles_on_axis(), mouse_to_plane_slide_zone_distance_squared(), mouse_to_slide_zone_distance_squared(), node_tweak_area_reroute(), paint_smooth_stroke(), py_bvhtree_find_nearest_range(), SCULPT_cloth_brush_affected_nodes_gather(), sculpt_pbvh_gather_generic(), sculpt_update_brush_delta(), snap_mesh_edge_verts_mixed(), snap_mesh_polygon(), snap_object_center(), snapArmature(), snapCamera(), snapCurve(), snapEditMesh(), snapMesh(), sphere_normal_from_uv(), spline_under_mouse_get(), studiolight_spherical_harmonics_lambda_get(), ui_do_but_CURVE(), ui_do_but_CURVEPROFILE(), uv_find_nearest_vert(), uv_image_outset(), warpModifier_do(), weldModifier_doWeld(), workbench_cavity_data_update(), and workbench_taa_jitter_init_order().
| MINLINE int square_i | ( | int | a | ) |
Definition at line 420 of file math_base_inline.c.
References Freestyle::a.
Referenced by area_actionzone_refresh_xy(), ED_image_paint_tile_find(), ED_image_paint_tile_push(), GPU_pbvh_grid_buffers_update(), multires_grid_paint_mask_downsample(), multires_mdisps_downsample_hidden(), multires_mdisps_upsample_hidden(), studiolight_calculate_radiance_cubemap_buffers(), studiolight_spherical_harmonics_apply_band_factors(), studiolight_spherical_harmonics_apply_windowing(), studiolight_spherical_harmonics_lambda_get(), and utile_alloc().
| MINLINE int square_s | ( | short | a | ) |
Definition at line 415 of file math_base_inline.c.
References Freestyle::a.
Referenced by project_state_init().
| MINLINE int square_uchar | ( | unsigned char | a | ) |
Definition at line 430 of file math_base_inline.c.
References Freestyle::a.
| MINLINE unsigned int square_uint | ( | unsigned int | a | ) |
Definition at line 425 of file math_base_inline.c.
References Freestyle::a.
Referenced by gpu_pbvh_grid_fill_index_buffers().
|
static |
Definition at line 81 of file BLI_math_base.h.