summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFujii Hironori <Hironori.Fujii@sony.com>2023-02-18 15:33:28 +0900
committerFujii Hironori <Hironori.Fujii@sony.com>2023-02-18 15:33:28 +0900
commit26fe448be3e833b19fd31b2067dde98d0949e1d6 (patch)
tree1fa97a45f3a790399de85c1e7d6785df3b5ee831
parentd7b9695ee431dfe43a2ae48ebfd907623c6cb6e0 (diff)
downloadcairo-26fe448be3e833b19fd31b2067dde98d0949e1d6.tar.gz
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
-rw-r--r--src/cairo-matrix.c9
1 files changed, 2 insertions, 7 deletions
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,@y1) transforms
- * to (@x2,@y2) then (@x1+@dx1,@y1+@dy1) will transform to
- * (@x1+@dx2,@y1+@dy2) for all values of @x1 and @x2.
- *
* Since: 1.0
**/
void