|
Blender
V2.93
|
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 109 of file math_base.c.
References BLI_assert, floorf, and powf.
Referenced by cursor_plane_draw(), and TEST().
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().
| 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().