summaryrefslogtreecommitdiff
path: root/basegfx/source/tuple/b2dtuple.cxx
diff options
context:
space:
mode:
authorPascal Junck <pjunck@openoffice.org>2004-11-03 07:39:28 +0000
committerPascal Junck <pjunck@openoffice.org>2004-11-03 07:39:28 +0000
commit8b1dd821cd4c478e90bf595f63d9704cf748a1f9 (patch)
tree08429aa19d46b4e6b8035f542c916da4d323244f /basegfx/source/tuple/b2dtuple.cxx
parentb0b2538c6a337df36624c74c71931decfb1d3d41 (diff)
INTEGRATION: CWS aw019 (1.7.14); FILE MERGED
2004/10/06 11:14:28 aw 1.7.14.1: #i34831#
Diffstat (limited to 'basegfx/source/tuple/b2dtuple.cxx')
-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