H3D API  2.4.1
Static Public Member Functions | List of all members
H3D::PyMatrix3d Class Reference

Python C Type wrapper around Matrix3d. More...

#include <H3D/PythonTypes.h>

Inheritance diagram for H3D::PyMatrix3d:
Inheritance graph

Static Public Member Functions

static int init (PyMatrix3d *self, PyObject *args, PyObject *kwds)
 Python type initialisation: will set the Matrix3d value from a python string argument list.
 
static PyObject * mul (PyObject *rota, PyObject *rotb)
 Multiplies two Matrix3d objects.
 
static PyObject * setToIdentity (PyObject *self, PyObject *args)
 Set to the identity matrix.
 
static PyObject * inverse (PyObject *self, PyObject *args)
 Returns the inverse of the matrix.
 
static PyObject * transpose (PyObject *self, PyObject *args)
 Returns the transpose of the matrix.
 
static PyObject * toEulerAngles (PyObject *self, PyObject *args)
 Get the euler angles( yaw, pitch, roll ) representation of the rotation matrix. More...
 
static PyObject * getScalePart (PyObject *self, PyObject *args)
 Get the scaling part of the matrix for each axis.
 
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 * 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 Public Member Functions inherited from H3D::PyNumberTypeWrapper< Matrix3d, &PyMatrix3d_Type, PyMatrix3d_Name, PythonInternals::PyMatrix3d3f_Check, PythonInternals::PyMatrix3d3f_AsMatrix3d, PyMatrix3d_FromMatrix3d >
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.
 

Detailed Description

Python C Type wrapper around Matrix3d.

Member Function Documentation

◆ toEulerAngles()

PyObject * H3D::PyMatrix3d::toEulerAngles ( PyObject *  self,
PyObject *  args 
)
static

Get the euler angles( yaw, pitch, roll ) representation of the rotation matrix.

The Matrix3f must be a rotation matrix.

References H3D::PyMatrix3d_AsMatrix3d(), and H3D::PyVec3d_FromVec3d().


The documentation for this class was generated from the following files: