|
Blender V5.3
|
Go to the source code of this file.
Namespaces | |
| namespace | blender |
| BMesh Iterators. | |
Functions | |
Python Functions | |
| blender::PyDoc_STRVAR (py_bl_math_clamp_doc, ".. function:: clamp(value, min=0, max=1)\n" "\n" " Clamps the float value between minimum and maximum. To avoid\n" " confusion, any call must use either one or all three arguments.\n" "\n" " :param value: The value to clamp.\n" " :type value: float\n" " :param min: The minimum value, defaults to 0.\n" " :type min: float\n" " :param max: The maximum value, defaults to 1.\n" " :type max: float\n" " :return: The clamped value.\n" " :rtype: float\n") | |
| static PyObject * | blender::py_bl_math_clamp (PyObject *, PyObject *args) |
| blender::PyDoc_STRVAR (py_bl_math_lerp_doc, ".. function:: lerp(from_value, to_value, factor)\n" "\n" " Linearly interpolate between two float values based on factor.\n" "\n" " :param from_value: The value to return when factor is 0.\n" " :type from_value: float\n" " :param to_value: The value to return when factor is 1.\n" " :type to_value: float\n" " :param factor: The interpolation value, normally in [0.0, 1.0].\n" " :type factor: float\n" " :return: The interpolated value.\n" " :rtype: float\n") | |
| static PyObject * | blender::py_bl_math_lerp (PyObject *, PyObject *args) |
| blender::PyDoc_STRVAR (py_bl_math_smoothstep_doc, ".. function:: smoothstep(from_value, to_value, value)\n" "\n" " Performs smooth interpolation between 0 and 1 as value changes between from and " "to values.\n" " Outside the range the function returns the same value as the nearest edge.\n" "\n" " :param from_value: The edge value where the result is 0.\n" " :type from_value: float\n" " :param to_value: The edge value where the result is 1.\n" " :type to_value: float\n" " :param value: The interpolation value.\n" " :type value: float\n" " :return: The interpolated value in [0.0, 1.0].\n" " :rtype: float\n") | |
| static PyObject * | blender::py_bl_math_smoothstep (PyObject *, PyObject *args) |
Module Definition | |
| static PyMethodDef | blender::M_bl_math_methods [] |
| static PyModuleDef | blender::M_bl_math_module_def |
| blender::PyDoc_STRVAR (M_bl_math_doc, "Miscellaneous math utilities module.") | |
| PyMODINIT_FUNC | blender::BPyInit_bl_math () |
This file defines the 'bl_math' module, a module for math utilities.
Definition in file bl_math_py_api.cc.