[cairo-commit] 2 commits - src/cairo-matrix.c

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Feb 20 08:27:57 UTC 2023


 src/cairo-matrix.c |    9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

New commits:
commit 7a8aa5eb97215810f408f0d29334c1a9abf1945a
Merge: 83db2efe0 26fe448be
Author: Adrian Johnson <ajohnson at redneon.com>
Date:   Mon Feb 20 08:27:55 2023 +0000

    Merge branch 'fix-doc-for-cairo_matrix_transform_distance' into 'master'
    
    Fix cairo_matrix_transform_distance documentation
    
    See merge request cairo/cairo!462

commit 26fe448be3e833b19fd31b2067dde98d0949e1d6
Author: Fujii Hironori <Hironori.Fujii at sony.com>
Date:   Sat Feb 18 15:33:28 2023 +0900

    Fix cairo_matrix_transform_distance documentation
    
    * Use dx and dy instead of dx1 and dy1 to match with the arguments
    * Use dx_new and dy_new instead of dx2 and dy2 to match with other parts of the documentation
    * Use xx, yx, xy, yy instead of a, b, c, d to match with other parts of the documentation
    * Remove the last two sentences that doesn't make sense

diff --git a/src/cairo-matrix.c b/src/cairo-matrix.c
index cb49adcbe..e8fd097ae 100644
--- a/src/cairo-matrix.c
+++ b/src/cairo-matrix.c
@@ -373,15 +373,10 @@ _cairo_matrix_multiply (cairo_matrix_t *r,
  * the returned vector is as follows:
  *
  * <programlisting>
- * dx2 = dx1 * a + dy1 * c;
- * dy2 = dx1 * b + dy1 * d;
+ * dx_new = xx * dx + xy * dy;
+ * dy_new = yx * dx + yy * dy;
  * </programlisting>
  *
- * Affine transformations are position invariant, so the same vector
- * always transforms to the same vector. If (@x1, at y1) transforms
- * to (@x2, at y2) then (@x1+ at dx1, at y1+@dy1) will transform to
- * (@x1+ at dx2, at y1+@dy2) for all values of @x1 and @x2.
- *
  * Since: 1.0
  **/
 void


More information about the cairo-commit mailing list