|
Blender V5.3
|
#include <algorithm>#include <Python.h>#include "mathutils.hh"#include "../generic/py_capi_utils.hh"#include "BLI_math_matrix_c.hh"#include "BLI_math_rotation_c.hh"#include "BLI_math_vector_c.hh"#include "BLI_utildefines.hh"#include "BLI_dynstr.hh"Go to the source code of this file.
Namespaces | |
| namespace | blender |
| BMesh Iterators. | |
Macros | |
| #define | EULER_SIZE 3 |
| #define | MAKE_ID3(a, b, c) |
Functions | |
Utilities | |
| static const char * | blender::euler_order_str (EulerObject *self) |
| short | blender::euler_order_from_string (const char *str, const char *error_prefix) |
| static PyObject * | blender::Euler_to_tuple_ex (EulerObject *self, int ndigits) |
Euler Type: <tt>__new__</tt> / <tt>mathutils.Euler()</tt> | |
| static PyObject * | blender::Euler_vectorcall (PyObject *type, PyObject *const *args, const size_t nargsf, PyObject *kwnames) |
| static PyObject * | blender::Euler_new (PyTypeObject *type, PyObject *args, PyObject *kwds) |
Euler Methods | |
| blender::PyDoc_STRVAR (Euler_to_quaternion_doc, ".. method:: to_quaternion()\n" "\n" " Return a quaternion representation of the euler.\n" "\n" " :return: Quaternion representation of the euler.\n" " :rtype: :class:`Quaternion`\n") | |
| static PyObject * | blender::Euler_to_quaternion (EulerObject *self) |
| blender::PyDoc_STRVAR (Euler_to_matrix_doc, ".. method:: to_matrix()\n" "\n" " Return a matrix representation of the euler.\n" "\n" " :return: A 3x3 rotation matrix representation of the euler.\n" " :rtype: :class:`Matrix`\n") | |
| static PyObject * | blender::Euler_to_matrix (EulerObject *self) |
| blender::PyDoc_STRVAR (Euler_zero_doc, ".. method:: zero()\n" "\n" " Set all values to zero.\n") | |
| static PyObject * | blender::Euler_zero (EulerObject *self) |
| blender::PyDoc_STRVAR (Euler_rotate_axis_doc, ".. method:: rotate_axis(axis, angle, /)\n" "\n" " Rotates the euler a certain amount, wrapping the result to produce\n" " a unique euler rotation (no 720 degree pitches).\n" "\n" " :param axis: An axis string.\n" " :type axis: Literal['X', 'Y', 'Z']\n" " :param angle: angle in radians.\n" " :type angle: float\n") | |
| static PyObject * | blender::Euler_rotate_axis (EulerObject *self, PyObject *args) |
| blender::PyDoc_STRVAR (Euler_rotate_doc, ".. method:: rotate(other, /)\n" "\n" " Rotates the euler by another mathutils value.\n" "\n" " :param other: rotation component of mathutils value\n" " :type other: :class:`Euler` | :class:`Quaternion` | :class:`Matrix`\n") | |
| static PyObject * | blender::Euler_rotate (EulerObject *self, PyObject *value) |
| blender::PyDoc_STRVAR (Euler_make_compatible_doc, ".. method:: make_compatible(other, /)\n" "\n" " Make this euler compatible with another,\n" " so interpolating between them works as intended.\n" "\n" " :param other: Other euler rotation.\n" " :type other: :class:`Euler`\n" "\n" " .. note:: the rotation order is not taken into account for this function.\n") | |
| static PyObject * | blender::Euler_make_compatible (EulerObject *self, PyObject *value) |
| blender::PyDoc_STRVAR (Euler_copy_doc, ".. method:: copy()\n" "\n" " Returns a copy of this euler.\n" "\n" " :return: A copy of the euler.\n" " :rtype: :class:`Euler`\n" "\n" " .. note:: use this to get a copy of a wrapped euler with\n" " no reference to the original data.\n") | |
| static PyObject * | blender::Euler_copy (EulerObject *self) |
| static PyObject * | blender::Euler_deepcopy (EulerObject *self, PyObject *args) |
Euler Type: <tt>__repr__</tt> & <tt>__str__</tt> | |
| static PyObject * | blender::Euler_repr (EulerObject *self) |
| static PyObject * | blender::Euler_str (EulerObject *self) |
Euler Type: Rich Compare | |
| static PyObject * | blender::Euler_richcmpr (PyObject *a, PyObject *b, int op) |
Euler Type: Hash (<tt>__hash__</tt>) | |
| static Py_hash_t | blender::Euler_hash (EulerObject *self) |
Euler Type: Sequence Protocol | |
| static Py_ssize_t | blender::Euler_len (EulerObject *) |
| static PyObject * | blender::Euler_item (EulerObject *self, Py_ssize_t i) |
| static int | blender::Euler_ass_item (EulerObject *self, Py_ssize_t i, PyObject *value) |
| static PyObject * | blender::Euler_slice (EulerObject *self, Py_ssize_t start, Py_ssize_t step, Py_ssize_t slice_length) |
| static int | blender::Euler_ass_slice (EulerObject *self, Py_ssize_t start, Py_ssize_t step, Py_ssize_t slice_length, PyObject *seq) |
| static PyObject * | blender::Euler_subscript (EulerObject *self, PyObject *item) |
| static int | blender::Euler_ass_subscript (EulerObject *self, PyObject *item, PyObject *value) |
Euler Type: Get/Set Item Implementation | |
| blender::PyDoc_STRVAR (Euler_axis_doc, "Euler axis angle in radians.\n" "\n" ":type: float\n") | |
| static PyObject * | blender::Euler_axis_get (EulerObject *self, void *type) |
| static int | blender::Euler_axis_set (EulerObject *self, PyObject *value, void *type) |
| blender::PyDoc_STRVAR (Euler_order_doc, "Euler rotation order.\n" "\n" ":type: Literal['XYZ', 'XZY', 'YXZ', 'YZX', 'ZXY', 'ZYX']\n") | |
| static PyObject * | blender::Euler_order_get (EulerObject *self, void *) |
| static int | blender::Euler_order_set (EulerObject *self, PyObject *value, void *) |
Euler Type: C/API Constructors | |
| PyObject * | blender::Euler_CreatePyObject (const float eul[3], const short order, PyTypeObject *base_type) |
| PyObject * | blender::Euler_CreatePyObject_wrap (float eul[3], const short order, PyTypeObject *base_type) |
| PyObject * | blender::Euler_CreatePyObject_cb (PyObject *cb_user, const short order, uchar cb_type, uchar cb_subtype) |
Variables | |
Euler Type: Sequence & Mapping Protocol Declarations | |
| static PySequenceMethods | blender::Euler_SeqMethods |
| static PyMappingMethods | blender::Euler_AsMapping |
Euler Type: Get/Set Item Definitions | |
| static PyGetSetDef | blender::Euler_getseters [] |
Euler Type: Method Definitions | |
| static PyMethodDef | blender::Euler_methods [] |
Euler Type: Buffer Protocol | |
| static PyBufferProcs | blender::Euler_as_buffer |
| static int | blender::Euler_getbuffer (PyObject *obj, Py_buffer *view, int flags) |
| static void | blender::Euler_releasebuffer (PyObject *, Py_buffer *view) |
Euler Type: Python Object Definition | |
| PyTypeObject | blender::euler_Type |
| blender::PyDoc_STRVAR (euler_doc, ".. class:: Euler(angles=(0.0, 0.0, 0.0), order='XYZ', /)\n" "\n" " This object gives access to Eulers in Blender.\n" "\n" " .. seealso:: `Euler angles <https://en.wikipedia.org/wiki/Euler_angles>`__ on " "Wikipedia.\n" "\n" " :param angles: (X, Y, Z) angles in radians.\n" " :type angles: Sequence[float]\n" " :param order: Euler rotation order.\n" " :type order: Literal['XYZ', 'XZY', 'YXZ', 'YZX', 'ZXY', 'ZYX']\n") | |
| #define EULER_SIZE 3 |
Definition at line 27 of file mathutils_Euler.cc.
Referenced by blender::Euler_ass_item(), blender::Euler_ass_slice(), blender::Euler_ass_subscript(), blender::Euler_CreatePyObject(), blender::Euler_getbuffer(), blender::Euler_hash(), blender::Euler_item(), blender::Euler_len(), blender::Euler_make_compatible(), blender::Euler_richcmpr(), blender::Euler_slice(), blender::Euler_subscript(), blender::Euler_to_tuple_ex(), and blender::Euler_vectorcall().
| #define MAKE_ID3 | ( | a, | |
| b, | |||
| c ) |
Referenced by blender::euler_order_from_string().