Blender V2.61 - r43446
Classes | Defines | Functions | Variables

mathutils_Matrix.h File Reference

Go to the source code of this file.

Classes

struct  MatrixObject

Defines

#define MatrixObject_Check(_v)   PyObject_TypeCheck((_v), &matrix_Type)
#define MATRIX_MAX_DIM   4
#define MATRIX_ITEM_ASSERT(_mat, _row, _col)   (void)0
#define MATRIX_ITEM_INDEX(_mat, _row, _col)   (MATRIX_ITEM_ASSERT(_mat, _row, _col),(((_mat)->num_row * (_col)) + (_row)))
#define MATRIX_ITEM_PTR(_mat, _row, _col)   ((_mat)->matrix + MATRIX_ITEM_INDEX(_mat, _row, _col))
#define MATRIX_ITEM(_mat, _row, _col)   ((_mat)->matrix [MATRIX_ITEM_INDEX(_mat, _row, _col)])
#define MATRIX_COL_INDEX(_mat, _col)   (MATRIX_ITEM_INDEX(_mat, 0, _col))
#define MATRIX_COL_PTR(_mat, _col)   ((_mat)->matrix + MATRIX_COL_INDEX(_mat, _col))

Functions

PyObject * Matrix_CreatePyObject (float *mat, const unsigned short num_col, const unsigned short num_row, int type, PyTypeObject *base_type)
PyObject * Matrix_CreatePyObject_cb (PyObject *user, const unsigned short num_col, const unsigned short num_row, int cb_type, int cb_subtype)
void matrix_as_3x3 (float mat[3][3], MatrixObject *self)

Variables

PyTypeObject matrix_Type
PyTypeObject matrix_access_Type
int mathutils_matrix_row_cb_index
int mathutils_matrix_col_cb_index
int mathutils_matrix_translation_cb_index
struct Mathutils_Callback mathutils_matrix_row_cb
struct Mathutils_Callback mathutils_matrix_col_cb
struct Mathutils_Callback mathutils_matrix_translation_cb

Detailed Description

Definition in file mathutils_Matrix.h.


Define Documentation

#define MATRIX_COL_INDEX (   _mat,
  _col 
)    (MATRIX_ITEM_INDEX(_mat, 0, _col))

Definition at line 54 of file mathutils_Matrix.h.

#define MATRIX_COL_PTR (   _mat,
  _col 
)    ((_mat)->matrix + MATRIX_COL_INDEX(_mat, _col))

Definition at line 55 of file mathutils_Matrix.h.

Referenced by matrix_as_3x3(), Matrix_resize_4x4(), and Matrix_to_translation().

#define MATRIX_ITEM (   _mat,
  _row,
  _col 
)    ((_mat)->matrix [MATRIX_ITEM_INDEX(_mat, _row, _col)])
#define MATRIX_ITEM_ASSERT (   _mat,
  _row,
  _col 
)    (void)0

Definition at line 47 of file mathutils_Matrix.h.

#define MATRIX_ITEM_INDEX (   _mat,
  _row,
  _col 
)    (MATRIX_ITEM_ASSERT(_mat, _row, _col),(((_mat)->num_row * (_col)) + (_row)))

Definition at line 50 of file mathutils_Matrix.h.

#define MATRIX_ITEM_PTR (   _mat,
  _row,
  _col 
)    ((_mat)->matrix + MATRIX_ITEM_INDEX(_mat, _row, _col))

Definition at line 51 of file mathutils_Matrix.h.

#define MATRIX_MAX_DIM   4

Definition at line 40 of file mathutils_Matrix.h.

Referenced by Matrix_lerp(), Matrix_repr(), Matrix_str(), and MatrixAccess_iter().

#define MatrixObject_Check (   _v)    PyObject_TypeCheck((_v), &matrix_Type)

Function Documentation

void matrix_as_3x3 ( float  mat[3][3],
MatrixObject self 
)
PyObject* Matrix_CreatePyObject ( float *  mat,
const unsigned short  num_col,
const unsigned short  num_row,
int  type,
PyTypeObject *  base_type 
)
PyObject* Matrix_CreatePyObject_cb ( PyObject *  user,
const unsigned short  num_col,
const unsigned short  num_row,
int  cb_type,
int  cb_subtype 
)

Definition at line 2374 of file mathutils_Matrix.c.

References Matrix_CreatePyObject(), and Py_NEW.

Referenced by pyrna_math_object_from_array().


Variable Documentation

Definition at line 244 of file mathutils_Matrix.c.

Referenced by PyInit_mathutils().

Definition at line 165 of file mathutils_Matrix.c.

Referenced by Matrix_item_col(), and PyInit_mathutils().

Definition at line 152 of file mathutils_Matrix.c.

Referenced by PyInit_mathutils().

Definition at line 81 of file mathutils_Matrix.c.

Referenced by Matrix_item_row(), Matrix_slice(), and PyInit_mathutils().

Definition at line 321 of file mathutils_Matrix.c.

Referenced by PyInit_mathutils().

Definition at line 258 of file mathutils_Matrix.c.

Referenced by Matrix_translation_get(), and PyInit_mathutils().

PyTypeObject matrix_access_Type

Definition at line 2561 of file mathutils_Matrix.c.

Referenced by PyInit_mathutils().

PyTypeObject matrix_Type

Definition at line 2261 of file mathutils_Matrix.c.

Referenced by Matrix_lerp(), and PyInit_mathutils().