summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--basegfx/source/tuple/b2dtuple.cxx18
1 files changed, 16 insertions, 2 deletions
diff --git a/basegfx/source/tuple/b2dtuple.cxx b/basegfx/source/tuple/b2dtuple.cxx
index 7626dc048eeb..3af0598ef169 100644
--- a/basegfx/source/tuple/b2dtuple.cxx
+++ b/basegfx/source/tuple/b2dtuple.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: b2dtuple.cxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: hjs $ $Date: 2004-06-25 17:18:36 $
+ * last change: $Author: pjunck $ $Date: 2004-11-03 08:39:28 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -72,6 +72,10 @@
namespace { struct EmptyTuple : public rtl::Static<basegfx::B2DTuple, EmptyTuple> {}; }
+#ifndef _BGFX_TUPLE_B2ITUPLE_HXX
+#include <basegfx/tuple/b2ituple.hxx>
+#endif
+
namespace basegfx
{
const B2DTuple& B2DTuple::getEmptyTuple()
@@ -79,6 +83,11 @@ namespace basegfx
return EmptyTuple::get();
}
+ B2DTuple::B2DTuple(const B2ITuple& rTup)
+ : mfX( rTup.getX() ),
+ mfY( rTup.getY() )
+ {}
+
bool B2DTuple::equalZero() const
{
return (this == &getEmptyTuple() ||
@@ -132,6 +141,11 @@ namespace basegfx
}
}
}
+
+ B2ITuple fround(const B2DTuple& rTup)
+ {
+ return B2ITuple(fround(rTup.getX()), fround(rTup.getY()));
+ }
} // end of namespace basegfx
// eof