summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2a36d64)
raw | patch | inline | side by side (parent: 2a36d64)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Wed, 2 Jan 2008 17:34:09 +0000 (17:34 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Wed, 2 Jan 2008 17:34:09 +0000 (17:34 +0000) |
src/libnr/Makefile_insert | patch | blob | history | |
src/libnr/nr-convert2geom.h | [new file with mode: 0644] | patch | blob |
index 72e5b56e7668cbc0e47bbe770d8522b953ec3baa..53d15d35b449d685d355fc46fdc6e2068d2dc0fc 100644 (file)
libnr/nr-compose-transform.h \
libnr/nr-compose.cpp \
libnr/nr-compose.h \
+ libnr/nr-convert2geom.h \
libnr/nr-convex-hull.h \
libnr/nr-coord.h \
libnr/nr-dim2.h \
diff --git a/src/libnr/nr-convert2geom.h b/src/libnr/nr-convert2geom.h
--- /dev/null
@@ -0,0 +1,31 @@
+#ifndef INKSCAPE_LIBNR_CONVERT2GEOM_H\r
+#define INKSCAPE_LIBNR_CONVERT2GEOM_H\r
+\r
+/*\r
+ * Converts between NR and 2Geom types.\r
+ *\r
+* Copyright (C) Johan Engelen 2008 <j.b.c.engelen@utwente.nl>\r
+ *\r
+ * Released under GNU GPL, read the file 'COPYING' for more information\r
+ */\r
+\r
+#include <2geom/matrix.h>\r
+#include <libnr/nr-matrix.h>\r
+\r
+inline Geom::Matrix to_2geom(NR::Matrix const & mat) {\r
+ Geom::Matrix mat2geom(mat[0], mat[1], mat[2], mat[3], mat[4], mat[5]);\r
+ return mat2geom;\r
+}\r
+\r
+#endif\r
+\r
+/*\r
+ Local Variables:\r
+ mode:c++\r
+ c-file-style:"stroustrup"\r
+ c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))\r
+ indent-tabs-mode:nil\r
+ fill-column:99\r
+ End:\r
+*/\r
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :\r