summaryrefslogtreecommitdiff
path: root/basegfx/source/range
diff options
context:
space:
mode:
authorPascal Junck <pjunck@openoffice.org>2004-11-03 07:39:15 +0000
committerPascal Junck <pjunck@openoffice.org>2004-11-03 07:39:15 +0000
commitb0b2538c6a337df36624c74c71931decfb1d3d41 (patch)
tree4d9ac4bd1e2ac56ebd92bcd771b3d3b0077b8377 /basegfx/source/range
parent8a40c6617921d354c6f458f4e72fdfeb8ed25b92 (diff)
INTEGRATION: CWS aw019 (1.3.36); FILE MERGED
2004/10/06 11:14:28 aw 1.3.36.1: #i34831#
Diffstat (limited to 'basegfx/source/range')
-rw-r--r--basegfx/source/range/b2drange.cxx18
-rw-r--r--basegfx/source/range/b3drange.cxx23
2 files changed, 37 insertions, 4 deletions
diff --git a/basegfx/source/range/b2drange.cxx b/basegfx/source/range/b2drange.cxx
index a5c6122c460e..8a0ff5fbde1a 100644
--- a/basegfx/source/range/b2drange.cxx
+++ b/basegfx/source/range/b2drange.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: b2drange.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: aw $ $Date: 2003-11-28 11:18:11 $
+ * last change: $Author: pjunck $ $Date: 2004-11-03 08:39:03 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -63,8 +63,22 @@
#include <basegfx/range/b2drange.hxx>
#endif
+#ifndef _BGFX_RANGE_B2IRANGE_HXX
+#include <basegfx/range/b2irange.hxx>
+#endif
+
+#ifndef _BGFX_NUMERIC_FTOOLS_HXX
+#include <basegfx/numeric/ftools.hxx>
+#endif
+
namespace basegfx
{
+ B2IRange fround(const B2DRange& rRange)
+ {
+ return B2IRange(
+ fround(rRange.getMinX()), fround(rRange.getMinY()),
+ fround(rRange.getMaxX()), fround(rRange.getMaxY()));
+ }
} // end of namespace basegfx
// eof
diff --git a/basegfx/source/range/b3drange.cxx b/basegfx/source/range/b3drange.cxx
index 714efb85a562..edad0bbe0505 100644
--- a/basegfx/source/range/b3drange.cxx
+++ b/basegfx/source/range/b3drange.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: b3drange.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: aw $ $Date: 2003-11-28 11:18:11 $
+ * last change: $Author: pjunck $ $Date: 2004-11-03 08:39:15 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -63,8 +63,27 @@
#include <basegfx/range/b3drange.hxx>
#endif
+#ifndef _BGFX_RANGE_B3IRANGE_HXX
+#include <basegfx/range/b3irange.hxx>
+#endif
+
+#ifndef _BGFX_NUMERIC_FTOOLS_HXX
+#include <basegfx/numeric/ftools.hxx>
+#endif
+
namespace basegfx
{
+ /** Round double to nearest integer for 3D range
+
+ @return the nearest integer for this range
+ */
+ B3IRange fround(const B3DRange& rRange)
+ {
+ return B3IRange(
+ fround(rRange.getMinX()), fround(rRange.getMinX()),
+ fround(rRange.getMinY()), fround(rRange.getMinY()),
+ fround(rRange.getMinZ()), fround(rRange.getMinZ()));
+ }
} // end of namespace basegfx
// eof