4 * Copyright © 2003 Keith Packard
6 * Permission to use, copy, modify, distribute, and sell this software and its
7 * documentation for any purpose is hereby granted without fee, provided that
8 * the above copyright notice appear in all copies and that both that
9 * copyright notice and this permission notice appear in supporting
10 * documentation, and that the name of Keith Packard not be used in
11 * advertising or publicity pertaining to distribution of the software without
12 * specific, written prior permission. Keith Packard makes no
13 * representations about the suitability of this software for any purpose. It
14 * is provided "as is" without express or implied warranty.
16 * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
17 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
18 * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
19 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
20 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
21 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
22 * PERFORMANCE OF THIS SOFTWARE.
25 @PURPOSE@ initialize an FcMatrix structure
29 <function>FcMatrixInit</function> initializes <parameter>matrix</parameter>
30 to the identity matrix.
34 @PURPOSE@ Copy a matrix
35 @TYPE1@ const FcMatrix *
38 <function>FcMatrixCopy</function> allocates a new FcMatrix
39 and copies <parameter>mat</parameter> into it.
43 @PURPOSE@ Compare two matrices
44 @TYPE1@ const FcMatrix *
46 @TYPE2@ const FcMatrix *
49 <function>FcMatrixEqual</function> compares <parameter>matrix1</parameter>
50 and <parameter>matrix2</parameter> returning FcTrue when they are equal and
51 FcFalse when they are not.
54 @FUNC@ FcMatrixMultiply
55 @PURPOSE@ Multiply matrices
58 @TYPE2@ const FcMatrix *
60 @TYPE3@ const FcMatrix *
63 <function>FcMatrixMultiply</function> multiplies
64 <parameter>matrix1</parameter> and <parameter>matrix2</parameter> storing
65 the result in <parameter>result</parameter>.
69 @PURPOSE@ Rotate a matrix
77 <function>FcMatrixRotate</function> rotates <parameter>matrix</parameter>
78 by the angle who's sine is <parameter>sin</parameter> and cosine is
79 <parameter>cos</parameter>. This is done by multiplying by the
88 @PURPOSE@ Scale a matrix
96 <function>FcMatrixScale</function> multiplies <parameter>matrix</parameter>
97 x values by <parameter>sx</parameter> and y values by
98 <parameter>sy</parameter>. This is done by multiplying by
107 @PURPOSE@ Shear a matrix
115 <function>FcMatrixShare</function> shears <parameter>matrix</parameter>
116 horizontally by <parameter>sh</parameter> and vertically by
117 <parameter>sv</parameter>. This is done by multiplying by