Blender  V2.93
mathutils_Quaternion.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  */
16 
17 #pragma once
18 
23 extern PyTypeObject quaternion_Type;
24 
25 #define QuaternionObject_Check(v) PyObject_TypeCheck((v), &quaternion_Type)
26 #define QuaternionObject_CheckExact(v) (Py_TYPE(v) == &quaternion_Type)
27 
28 typedef struct {
31 
32 /* struct data contains a pointer to the actual data that the
33  * object uses. It can use either PyMem allocated data (which will
34  * be stored in py_data) or be a wrapper for data allocated through
35  * blender (stored in blend_data). This is an either/or struct not both */
36 
37 /* prototypes */
38 PyObject *Quaternion_CreatePyObject(const float quat[4],
39  PyTypeObject *base_type) ATTR_WARN_UNUSED_RESULT;
40 PyObject *Quaternion_CreatePyObject_wrap(float quat[4],
41  PyTypeObject *base_type) ATTR_WARN_UNUSED_RESULT
42  ATTR_NONNULL(1);
43 PyObject *Quaternion_CreatePyObject_cb(PyObject *cb_user,
44  unsigned char cb_type,
45  unsigned char cb_subtype) ATTR_WARN_UNUSED_RESULT;
#define ATTR_NONNULL(...)
void BLI_kdtree_nd_() int BLI_kdtree_nd_() int BLI_kdtree_nd_() int BLI_kdtree_nd_() ATTR_WARN_UNUSED_RESULT
PyObject * Quaternion_CreatePyObject_wrap(float quat[4], PyTypeObject *base_type) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
PyObject * Quaternion_CreatePyObject(const float quat[4], PyTypeObject *base_type) ATTR_WARN_UNUSED_RESULT
PyTypeObject quaternion_Type
PyObject * Quaternion_CreatePyObject_cb(PyObject *cb_user, unsigned char cb_type, unsigned char cb_subtype) ATTR_WARN_UNUSED_RESULT