[cairo-commit] pycairo/doc/reference matrix.rst,1.1,1.2

Steve Chaplin commit at pdx.freedesktop.org
Sat Dec 27 00:43:53 PST 2008


Committed by: stevech1097

Update of /cvs/cairo/pycairo/doc/reference
In directory kemper:/tmp/cvs-serv14470/doc/reference

Modified Files:
	matrix.rst 
Log Message:
'SC'

Index: matrix.rst
===================================================================
RCS file: /cvs/cairo/pycairo/doc/reference/matrix.rst,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- matrix.rst	10 Dec 2008 06:57:46 -0000	1.1
+++ matrix.rst	27 Dec 2008 08:43:51 -0000	1.2
@@ -28,6 +28,8 @@
 To multiply two matrices::
 
   matrix3 = matrix1 * matrix2
+  # Note: This operation is consistent with standard matrix multiplication
+  # and is equivalent to matrix3 = matrix2.multiply(matrix1)
 
 To compare two matrices::
 
@@ -96,6 +98,20 @@
       will fail.
 
 
+   .. method:: multiply(matrix2)
+
+      :param matrix2: a second matrix
+      :type matrix2: cairo.Matrix
+      :returns: a new *Matrix*
+
+      Multiplies the affine transformations in *Matrix* and *matrix2*
+      together. The effect of the resulting transformation is to first apply
+      the transformation in *Matrix* to the coordinates and then apply the
+      transformation in *matrix2* to the coordinates.
+
+      It is allowable for result to be identical to either *Matrix* or *matrix2*.
+
+
    .. method:: rotate(radians)
 
       :param radians: angle of rotation, in radians. The direction of rotation



More information about the cairo-commit mailing list