|
Blender V5.0
|
Go to the source code of this file.
Functions | |
| int | pow_i (int base, int exp) |
| double | double_round (double x, int ndigits) |
| float | floor_power_of_10 (float f) |
| float | ceil_power_of_10 (float f) |
Ceiling to the nearest power of 10, e.g.:
| f | Value to ceiling, must be over 0.0. |
Definition at line 74 of file math_base.cc.
References BLI_assert, floorf, and powf.
Referenced by blender::tests::TEST(), and v3d_cursor_plane_draw().
| double double_round | ( | double | x, |
| int | ndigits ) |
| ndigits | must be between 0 and 21. |
Definition at line 28 of file math_base.cc.
References fabs(), pow, round, x, y, and z().
Referenced by Color_to_tuple_ex(), Euler_to_tuple_ex(), Quaternion_to_tuple_ext(), 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 65 of file math_base.cc.
References BLI_assert, ceilf, and powf.
Referenced by blender::tests::TEST().
| int pow_i | ( | int | base, |
| int | exp ) |
Definition at line 13 of file math_base.cc.
References BLI_assert, exp, and result.
Referenced by multires_create_grids_in_unsubdivided_base_mesh(), and paint_proj_new_stroke().