diff options
author | Sybren A. Stüvel <sybren@stuvel.eu> | 2015-02-01 18:06:32 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@stuvel.eu> | 2015-02-01 20:16:12 +0300 |
commit | baa8b63111f2ac5439155b6e0807a22f550b40f0 (patch) | |
tree | a2ec98474d36bb21646f29ad6b61f3024fff0652 /source/blender/python/mathutils/mathutils_Matrix.c | |
parent | fd75796afe27186e0f651efde4ded2921bd3bb6e (diff) |
Documentation: updated mathutils documentation
Added descriptions of the constructors, and improved the module-level
documentation.
Diffstat (limited to 'source/blender/python/mathutils/mathutils_Matrix.c')
-rw-r--r-- | source/blender/python/mathutils/mathutils_Matrix.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/python/mathutils/mathutils_Matrix.c b/source/blender/python/mathutils/mathutils_Matrix.c index 4706c09176e..95b53256eac 100644 --- a/source/blender/python/mathutils/mathutils_Matrix.c +++ b/source/blender/python/mathutils/mathutils_Matrix.c @@ -2716,7 +2716,14 @@ static struct PyMethodDef Matrix_methods[] = { /*------------------PY_OBECT DEFINITION--------------------------*/ PyDoc_STRVAR(matrix_doc, -"This object gives access to Matrices in Blender." +".. class:: Matrix([rows])\n" +"\n" +" This object gives access to Matrices in Blender, supporting square and rectangular\n" +" matrices from 2x2 up to 4x4.\n" +"\n" +" :param rows: Sequence of rows.\n" +" When ommitted, a 4x4 identity matrix is constructed.\n" +" :type rows: 2d number sequence\n" ); PyTypeObject matrix_Type = { PyVarObject_HEAD_INIT(NULL, 0) |