diff options
author | Pierre Joye <pierre.php@gmail.com> | 2021-08-26 21:48:17 +0700 |
---|---|---|
committer | Pierre Joye <pierre.php@gmail.com> | 2021-08-26 21:48:17 +0700 |
commit | 4dcc6025cbb4c3cd844ca568026ef7a653fa0a22 (patch) | |
tree | 2fb626c8aaee1e4807d1de1acb3d83145ba6036d /src/gd_matrix.c | |
parent | ebf067ea64c41ab5623135b806530c572d38aab0 (diff) | |
download | libgd-4dcc6025cbb4c3cd844ca568026ef7a653fa0a22.tar.gz |
document gd Matrix
Diffstat (limited to 'src/gd_matrix.c')
-rw-r--r-- | src/gd_matrix.c | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/gd_matrix.c b/src/gd_matrix.c index ada63e6..def3f3c 100644 --- a/src/gd_matrix.c +++ b/src/gd_matrix.c @@ -12,7 +12,28 @@ /** * Title: Matrix * Group: Affine Matrix - */ + * + * Matrix functions to initialize, transform and various other operations + * on these matrices. + * They can be used with gdTransformAffineCopy and are also used in various + * transformations functions in GD. + * + * matrix are create using a 6 elements double array: + * (start code) + * matrix[0] == xx + * matrix[1] == yx + * matrix[2] == xy + * matrix[3] == xy + * matrix[4] == x0 + * matrix[5] == y0 + * (end code) + * where the transformation of a given point (x,y) is given by: + * + * (start code) + * x_new = xx * x + xy * y + x0; + * y_new = yx * x + yy * y + y0; + * (end code) +*/ /** * Function: gdAffineApplyToPointF |