H3D API
2.4.1
|
Python C Type wrapper around Matrix4d. More...
#include <H3D/PythonTypes.h>
Static Public Member Functions | |
static int | init (PyMatrix4d *self, PyObject *args, PyObject *kwds) |
Python type initialisation: will set the Matrix4d value from a python string argument list. | |
static PyObject * | mul (PyObject *rota, PyObject *rotb) |
Multiplies two Matrix4d objects. | |
static PyObject * | setToIdentity (PyObject *self, PyObject *args) |
Set to the identity matrix. | |
static PyObject * | transformInverse (PyObject *self, PyObject *args) |
Returns the inverse of the matrix assuming that it is on the form. More... | |
static PyObject * | inverse (PyObject *self, PyObject *args) |
Returns the inverse of the matrix. | |
static PyObject * | transpose (PyObject *self, PyObject *args) |
Returns the inverse of the matrix. | |
static PyObject * | getRow (PyObject *self, PyObject *args) |
Get a row of the matrix. | |
static PyObject * | getColumn (PyObject *self, PyObject *args) |
Get a column of the matrix. | |
static PyObject * | getScaleRotationPart (PyObject *self, PyObject *args) |
Returns the scale and rotation part of the Matrix4d. | |
static PyObject * | getRotationPart (PyObject *self, PyObject *args) |
Returns the rotation part of the Matrix4d. | |
static PyObject * | getScalePart (PyObject *self, PyObject *args) |
Returns the scaling part of the Matrix4d. | |
static PyObject * | getTranslationPart (PyObject *self, PyObject *args) |
Returns the translation part of the Matrix4d. | |
static PyObject * | getElement (PyObject *self, PyObject *args) |
Get an element in the matrix. | |
static PyObject * | setElement (PyObject *self, PyObject *args) |
Set an element in the matrix. | |
![]() | |
static PyObject * | mul (PyObject *veca, PyObject *vecb) |
Performs multiplacation. | |
![]() | |
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 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 Matrix4d.
|
static |
Returns the inverse of the matrix assuming that it is on the form.
[ m00 m01 m02 m03 m10 m11 m12 m13 m20 m21 m22 m23 0 0 0 1 ]
References H3D::PyMatrix4d_AsMatrix4d(), and H3D::PyMatrix4d_FromMatrix4d().