Blame doc/fcmatrix.fncs

Packit 352660
/*
Packit 352660
 * fontconfig/doc/fcmatrix.fncs
Packit 352660
 *
Packit 352660
 * Copyright © 2003 Keith Packard
Packit 352660
 *
Packit 352660
 * Permission to use, copy, modify, distribute, and sell this software and its
Packit 352660
 * documentation for any purpose is hereby granted without fee, provided that
Packit 352660
 * the above copyright notice appear in all copies and that both that
Packit 352660
 * copyright notice and this permission notice appear in supporting
Packit 352660
 * documentation, and that the name of the author(s) not be used in
Packit 352660
 * advertising or publicity pertaining to distribution of the software without
Packit 352660
 * specific, written prior permission.  The authors make no
Packit 352660
 * representations about the suitability of this software for any purpose.  It
Packit 352660
 * is provided "as is" without express or implied warranty.
Packit 352660
 *
Packit 352660
 * THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
Packit 352660
 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
Packit 352660
 * EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
Packit 352660
 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
Packit 352660
 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
Packit 352660
 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
Packit 352660
 * PERFORMANCE OF THIS SOFTWARE.
Packit 352660
 */
Packit 352660
Packit 352660
@RET@		void
Packit 352660
@FUNC@		FcMatrixInit
Packit 352660
@PURPOSE@	initialize an FcMatrix structure
Packit 352660
@TYPE1@		FcMatrix *
Packit 352660
@ARG1@		matrix
Packit 352660
@DESC@
Packit 352660
<function>FcMatrixInit</function> initializes <parameter>matrix</parameter>
Packit 352660
to the identity matrix.
Packit 352660
@@
Packit 352660
Packit 352660
@FUNC@		FcMatrixCopy
Packit 352660
@PURPOSE@	Copy a matrix
Packit 352660
@TYPE1@		const FcMatrix *
Packit 352660
@ARG1@		matrix
Packit 352660
@DESC@
Packit 352660
<function>FcMatrixCopy</function> allocates a new FcMatrix
Packit 352660
and copies <parameter>mat</parameter> into it.
Packit 352660
@@
Packit 352660
Packit 352660
@FUNC@		FcMatrixEqual
Packit 352660
@PURPOSE@	Compare two matrices
Packit 352660
@TYPE1@		const FcMatrix *
Packit 352660
@ARG1@		matrix1
Packit 352660
@TYPE2@		const FcMatrix *
Packit 352660
@ARG2@		matrix2
Packit 352660
@DESC@
Packit 352660
<function>FcMatrixEqual</function> compares <parameter>matrix1</parameter>
Packit 352660
and <parameter>matrix2</parameter> returning FcTrue when they are equal and
Packit 352660
FcFalse when they are not.
Packit 352660
@@
Packit 352660
Packit 352660
@FUNC@		FcMatrixMultiply
Packit 352660
@PURPOSE@	Multiply matrices
Packit 352660
@TYPE1@		FcMatrix *
Packit 352660
@ARG1@		result
Packit 352660
@TYPE2@		const FcMatrix *
Packit 352660
@ARG2@		matrix1
Packit 352660
@TYPE3@		const FcMatrix *
Packit 352660
@ARG3@		matrix2
Packit 352660
@DESC@
Packit 352660
<function>FcMatrixMultiply</function> multiplies
Packit 352660
<parameter>matrix1</parameter> and <parameter>matrix2</parameter> storing
Packit 352660
the result in <parameter>result</parameter>.
Packit 352660
@@
Packit 352660
Packit 352660
@FUNC@		FcMatrixRotate
Packit 352660
@PURPOSE@	Rotate a matrix
Packit 352660
@TYPE1@		FcMatrix *
Packit 352660
@ARG1@		matrix
Packit 352660
@TYPE2@		double%
Packit 352660
@ARG2@		cos
Packit 352660
@TYPE3@		double%
Packit 352660
@ARG3@		sin
Packit 352660
@DESC@
Packit 352660
<function>FcMatrixRotate</function> rotates <parameter>matrix</parameter>
Packit 352660
by the angle who's sine is <parameter>sin</parameter> and cosine is
Packit 352660
<parameter>cos</parameter>.  This is done by multiplying by the
Packit 352660
matrix:
Packit 352660
<programlisting>
Packit 352660
  cos -sin
Packit 352660
  sin  cos
Packit 352660
</programlisting>
Packit 352660
@@
Packit 352660
Packit 352660
@FUNC@		FcMatrixScale
Packit 352660
@PURPOSE@	Scale a matrix
Packit 352660
@TYPE1@		FcMatrix *
Packit 352660
@ARG1@		matrix
Packit 352660
@TYPE2@		double%
Packit 352660
@ARG2@		sx
Packit 352660
@TYPE3@		double%
Packit 352660
@ARG3@		dy
Packit 352660
@DESC@
Packit 352660
<function>FcMatrixScale</function> multiplies <parameter>matrix</parameter>
Packit 352660
x values by <parameter>sx</parameter> and y values by
Packit 352660
<parameter>dy</parameter>.  This is done by multiplying by
Packit 352660
the matrix:
Packit 352660
<programlisting>
Packit 352660
   sx  0
Packit 352660
   0   dy
Packit 352660
</programlisting>
Packit 352660
@@
Packit 352660
Packit 352660
@FUNC@		FcMatrixShear
Packit 352660
@PURPOSE@	Shear a matrix
Packit 352660
@TYPE1@		FcMatrix *
Packit 352660
@ARG1@		matrix
Packit 352660
@TYPE2@		double%
Packit 352660
@ARG2@		sh
Packit 352660
@TYPE3@		double%
Packit 352660
@ARG3@		sv
Packit 352660
@DESC@
Packit 352660
<function>FcMatrixShare</function> shears <parameter>matrix</parameter>
Packit 352660
horizontally by <parameter>sh</parameter> and vertically by
Packit 352660
<parameter>sv</parameter>.  This is done by multiplying by
Packit 352660
the matrix:
Packit 352660
<programlisting>
Packit 352660
  1  sh
Packit 352660
  sv  1
Packit 352660
</programlisting>
Packit 352660
@@