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.
27 @PURPOSE@ initialize an FcMatrix structure
31 <function>FcMatrixInit</function> initializes <parameter>matrix</parameter>
32 to the identity matrix.
36 @PURPOSE@ Copy a matrix
37 @TYPE1@ const FcMatrix *
40 <function>FcMatrixCopy</function> allocates a new FcMatrix
41 and copies <parameter>mat</parameter> into it.
45 @PURPOSE@ Compare two matrices
46 @TYPE1@ const FcMatrix *
48 @TYPE2@ const FcMatrix *
51 <function>FcMatrixEqual</function> compares <parameter>matrix1</parameter>
52 and <parameter>matrix2</parameter> returning FcTrue when they are equal and
53 FcFalse when they are not.
56 @FUNC@ FcMatrixMultiply
57 @PURPOSE@ Multiply matrices
60 @TYPE2@ const FcMatrix *
62 @TYPE3@ const FcMatrix *
65 <function>FcMatrixMultiply</function> multiplies
66 <parameter>matrix1</parameter> and <parameter>matrix2</parameter> storing
67 the result in <parameter>result</parameter>.
71 @PURPOSE@ Rotate a matrix
79 <function>FcMatrixRotate</function> rotates <parameter>matrix</parameter>
80 by the angle who's sine is <parameter>sin</parameter> and cosine is
81 <parameter>cos</parameter>. This is done by multiplying by the
90 @PURPOSE@ Scale a matrix
98 <function>FcMatrixScale</function> multiplies <parameter>matrix</parameter>
99 x values by <parameter>sx</parameter> and y values by
100 <parameter>sy</parameter>. This is done by multiplying by
109 @PURPOSE@ Shear a matrix
117 <function>FcMatrixShare</function> shears <parameter>matrix</parameter>
118 horizontally by <parameter>sh</parameter> and vertically by
119 <parameter>sv</parameter>. This is done by multiplying by