|
H3D API
2.4.1
|
Python C Type wrapper around Quaternion. More...
#include <H3D/PythonTypes.h>

Static Public Member Functions | |
| static int | init (PyQuaternion *self, PyObject *args, PyObject *kwds) |
| Python type initialisation: will set the Quaternion value from a python string argument list. | |
| static PyObject * | mul (PyObject *rota, PyObject *rotb) |
| Multiplies two PyQuaternion objects. | |
| static PyObject * | toEulerAngles (PyObject *self, PyObject *args) |
| Get the euler angles( yaw, pitch, roll ) representation of the Rotation. More... | |
| static PyObject * | norm (PyObject *self, PyObject *args) |
| Returns the Quaternion norm. | |
| static PyObject * | normalize (PyObject *self, PyObject *args) |
| Normalize the Quaternion, i.e. More... | |
| static PyObject * | conjugate (PyObject *self, PyObject *args) |
| Returns the conjugate of the Quaternion. | |
| static PyObject * | inverse (PyObject *self, PyObject *args) |
| Returns the inverse of the Quaternion. | |
| static PyObject * | slerp (PyObject *self, PyObject *args) |
| Spherical linear interpolation between two Quaternions. | |
| static PyObject * | dotProduct (PyObject *self, PyObject *args) |
| dotProduct() returns the cos(angle) between two quaternions | |
Static Public Member Functions inherited from H3D::PyNumberTypeWrapper< Quaternion, &PyQuaternion_Type, PyQuaternion_Name, PyQuaternion_Check, PyQuaternion_AsQuaternion, PyQuaternion_FromQuaternion > | |
| static PyObject * | mul (PyObject *veca, PyObject *vecb) |
| Performs multiplacation. | |
Static Public Member Functions inherited from H3D::PyNumberTypeWrapperBase< Type, TypeObject, NameFunc, CheckFunc, ValueFunc, NewFunc > | |
| static PyObject * | add (PyObject *veca, PyObject *vecb) |
| Performs addition between two instances. | |
| static PyObject * | sub (PyObject *veca, PyObject *vecb) |
| Performs subtraction between two instances. | |
| static PyObject * | mul (PyObject *veca, PyObject *vecb) |
| Performs multiplication between a instance of the type and a float, long or int. | |
| static PyObject * | div (PyObject *veca, PyObject *floatb) |
| Performs division with a float, long or int instance. | |
| static PyObject * | neg (PyObject *vec) |
| Negation. | |
Static Public Member Functions inherited from H3D::PyTypeWrapper< Type, TypeObject, NameFunc, CheckFunc, ValueFunc, NewFunc > | |
| static void | installType (PyObject *_H3D_module) |
| Install type in the given python module. More... | |
| static PyObject * | create () |
| create() a new instance of Type using Python to allocate the memory and initialise the PyObject headers - to be called by PythonScript's internals. | |
| static void | dealloc (PyObject *self) |
| Python type deallocation. | |
| static PyObject * | repr (PyObject *myself, PyObject *) |
| Converts to a char* string. | |
| static int | compare (PyObject *veca, PyObject *vecb) |
| Test if two PyTypes are equal or not. | |
Python C Type wrapper around Quaternion.
|
static |
Normalize the Quaternion, i.e.
scale it so that the magnitude is 1.
References normalize().
Referenced by normalize().
|
static |
Get the euler angles( yaw, pitch, roll ) representation of the Rotation.
References H3D::PyQuaternion_AsQuaternion(), and H3D::PyVec3f_FromVec3f().