diff options
author | Owen Taylor <otaylor@redhat.com> | 2005-03-17 11:24:00 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@redhat.com> | 2005-03-17 11:24:00 +0000 |
commit | 0b09748296ea3f0ebb554061ef248373b8437947 (patch) | |
tree | 4c7c24067f5ca2e6812c796ed5792df601d3d334 /src/cairo-matrix.c | |
parent | 1e7138175667e55dad7e0ca8ebadd0a1a50f0fa8 (diff) |
Fix the docs to to correctly describe the order of transformation for muliply/scale/rotate/translate. (cairo_matrix_translate): Fix translate/rotate typo in the parameter descriptions.
Diffstat (limited to 'src/cairo-matrix.c')
-rw-r--r-- | src/cairo-matrix.c | 35 |
1 files changed, 22 insertions, 13 deletions
diff --git a/src/cairo-matrix.c b/src/cairo-matrix.c index 88e536e8a..161d9717e 100644 --- a/src/cairo-matrix.c +++ b/src/cairo-matrix.c @@ -222,12 +222,13 @@ _cairo_matrix_set_translate (cairo_matrix_t *matrix, /** * cairo_matrix_translate: * @matrix: a cairo_matrix_t - * @tx: amount to rotate in the X direction - * @ty: amount to rotate in the Y direction + * @tx: amount to translate in the X direction + * @ty: amount to translate in the Y direction * * Applies a translation by @tx, @ty to the transformation in - * @matrix. The new transformation is given by first translating by - * @tx, @ty then applying the original transformation + * @matrix. The effect of the new transformation is to first translate + * the coordinates by @tx and @ty, then apply the original transformation + * to the coordinates. * * Return value: %CAIRO_STATUS_SUCCESS, always. **/ @@ -257,9 +258,9 @@ _cairo_matrix_set_scale (cairo_matrix_t *matrix, * @sx: Scale factor in the X direction * @sy: Scale factor in the Y direction * - * Applies scaling by @tx, @ty to the transformation in - * @matrix. The new transformation is given by first scaling by @sx - * and @sy then applying the original transformation + * Applies scaling by @tx, @ty to the transformation in @matrix. The + * effect of the new transformation is to first scale the coordinates + * by @sx and @sy, then apply the original transformation to the coordinates. * * Return value: %CAIRO_STATUS_SUCCESS, always. **/ @@ -302,8 +303,9 @@ _cairo_matrix_set_rotate (cairo_matrix_t *matrix, * clockwise. * * Applies rotation by @radians to the transformation in - * @matrix. The new transformation is given by first rotating by - * @radians then applying the original transformation + * @matrix. The effect of the new transformation is to first rotate the + * coordinates by @radians, then apply the original transformation + * to the coordinates. * * Return value: %CAIRO_STATUS_SUCCESS, always. **/ @@ -324,12 +326,19 @@ cairo_matrix_rotate (cairo_matrix_t *matrix, double radians) * @b: a @cairo_matrix_t * * Multiplies the affine transformations in @a and @b together - * and stores the result in @result. The resulting transformation - * is given by first applying the transformation in @b then - * applying the transformation in @a. - * + * and stores the result in @result. The effect of the resulting + * transformation is to first apply the transformation in @a to the + * coordinates and then apply the transformation in @b to the + * coordinates. + * * Return value: %CAIRO_STATUS_SUCCESS, always. **/ +/* + * XXX: The ordering of the arguments to this function corresponds + * to [row_vector]*A*B. If we want to use column vectors instead, + * then we need to switch the two arguments and fix up all + * uses. + */ cairo_status_t cairo_matrix_multiply (cairo_matrix_t *result, const cairo_matrix_t *a, const cairo_matrix_t *b) { |