summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 63c3175)
raw | patch | inline | side by side (parent: 63c3175)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Sun, 8 Jun 2008 14:35:38 +0000 (14:35 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Sun, 8 Jun 2008 14:35:38 +0000 (14:35 +0000) |
src/libnr/nr-convert2geom.h | patch | blob | history |
index 5e60215696d921ec68bc6552199771f827dfd555..c92c3401109f72faa827a2f83c03b41c5540e95b 100644 (file)
inline Geom::Point to_2geom(NR::Point const & _pt) {
return Geom::Point(_pt[0], _pt[1]);
}
-
inline NR::Point from_2geom(Geom::Point const & _pt) {
return NR::Point(_pt[0], _pt[1]);
}
Geom::Matrix mat2geom(mat[0], mat[1], mat[2], mat[3], mat[4], mat[5]);
return mat2geom;
}
-
inline NR::Matrix from_2geom(Geom::Matrix const & mat) {
NR::Matrix mat2geom(mat[0], mat[1], mat[2], mat[3], mat[4], mat[5]);
return mat2geom;
return Geom::Translate( mat.offset[0], mat.offset[1] );
}
+inline Geom::Rect to_2geom(NR::Rect const & rect) {
+ Geom::Rect rect2geom(to_2geom(rect.min()), to_2geom(rect.max()));
+ return rect2geom;
+}
inline NR::Rect from_2geom(Geom::Rect const & rect2geom) {
NR::Rect rect(rect2geom.min(), rect2geom.max());
return rect;