aboutsummaryrefslogtreecommitdiff
path: root/generic/Transfo.h
diff options
context:
space:
mode:
authorcvs2svn2005-06-10 10:29:11 +0000
committercvs2svn2005-06-10 10:29:11 +0000
commit960cdf29197bc3f5922110cf26627aa9709ac79b (patch)
tree7d6e4a472376b203d21826c2230b4a8c6a9024bd /generic/Transfo.h
parent3fc9c4bc1d6f70db41ad418992bf3d461059d3c0 (diff)
downloadtkzinc-960cdf29197bc3f5922110cf26627aa9709ac79b.zip
tkzinc-960cdf29197bc3f5922110cf26627aa9709ac79b.tar.gz
tkzinc-960cdf29197bc3f5922110cf26627aa9709ac79b.tar.bz2
tkzinc-960cdf29197bc3f5922110cf26627aa9709ac79b.tar.xz
This commit was manufactured by cvs2svn to create branch 'bogue40'.
Diffstat (limited to 'generic/Transfo.h')
-rw-r--r--generic/Transfo.h105
1 files changed, 0 insertions, 105 deletions
diff --git a/generic/Transfo.h b/generic/Transfo.h
deleted file mode 100644
index ab28d6f..0000000
--- a/generic/Transfo.h
+++ /dev/null
@@ -1,105 +0,0 @@
-/*
- * Transfo.h -- Header for common geometric routines.
- *
- * Authors : Patrick Lecoanet.
- * Creation date :
- *
- * $Id$
- */
-
-/*
- * Copyright (c) 1993 - 2005 CENA, Patrick Lecoanet --
- *
- * See the file "Copyright" for information on usage and redistribution
- * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
- *
- */
-
-
-#ifndef _Transfo_h
-#define _Transfo_h
-
-
-#include "Types.h"
-
-#include <math.h>
-#include <limits.h>
-
-
-/*
- * First subscript is matrix row, second is matrix column.
- * So a[0][1] is upper right corner of matrix a and a[2][0]
- * is lower left corner.
- */
-typedef struct _ZnTransfo {
- float _[3][2];
-} ZnTransfo;
-
-
-ZnTransfo *
-ZnTransfoNew(void);
-ZnTransfo *
-ZnTransfoDuplicate(ZnTransfo *t);
-void
-ZnTransfoFree(ZnTransfo *t);
-void
-ZnPrintTransfo(ZnTransfo *t);
-void
-ZnTransfoSetIdentity(ZnTransfo *t);
-ZnBool
-ZnTransfoIsIdentity(ZnTransfo *t);
-ZnTransfo *
-ZnTransfoCompose(ZnTransfo *res,
- ZnTransfo *t1,
- ZnTransfo *t2);
-ZnTransfo *
-ZnTransfoInvert(ZnTransfo *t,
- ZnTransfo *inv);
-void
-ZnTransfoDecompose(ZnTransfo *t,
- ZnPoint *scale,
- ZnPoint *trans,
- ZnReal *rotation,
- ZnReal *skewxy);
-ZnBool
-ZnTransfoEqual(ZnTransfo *t1,
- ZnTransfo *t2,
- ZnBool include_translation);
-ZnBool
-ZnTransfoHasSkew(ZnTransfo *t);
-ZnBool
-ZnTransfoIsTranslation(ZnTransfo *t);
-ZnPoint *
-ZnTransformPoint(ZnTransfo *t,
- ZnPoint *p,
- ZnPoint *xp);
-void
-ZnTransformPoints(ZnTransfo *t,
- ZnPoint *p,
- ZnPoint *xp,
- unsigned int num);
-ZnTransfo *
-ZnTranslate(ZnTransfo *t,
- ZnReal delta_x,
- ZnReal delta_y,
- ZnBool abs);
-ZnTransfo *
-ZnScale(ZnTransfo *t,
- ZnReal scale_x,
- ZnReal scale_y);
-ZnTransfo *
-ZnRotateRad(ZnTransfo *t,
- ZnReal angle);
-ZnTransfo *
-ZnRotateDeg(ZnTransfo *t,
- ZnReal angle);
-ZnTransfo *
-ZnSkewRad(ZnTransfo *t,
- ZnReal skew_x,
- ZnReal skew_y);
-ZnTransfo *
-ZnSkewDeg(ZnTransfo *t,
- ZnReal skew_x,
- ZnReal skew_y);
-
-#endif /* _Transfo_h */