summaryrefslogtreecommitdiff
path: root/basegfx/inc/basegfx/range/b2drange.hxx
diff options
context:
space:
mode:
authorArmin Weiss <aw@openoffice.org>2003-11-26 13:40:18 +0000
committerArmin Weiss <aw@openoffice.org>2003-11-26 13:40:18 +0000
commit56f2ab808ec8b0ce9aed1acd042123b87006ad60 (patch)
tree647130c86bd40c589a4a555ea24aac497ca7029a /basegfx/inc/basegfx/range/b2drange.hxx
parentc4068e1d9c41fb4a08498c6318684226076bc56c (diff)
Added support for B3DPolyPOlygon, moved BDRange from source/inc to range namespace and the directories
Diffstat (limited to 'basegfx/inc/basegfx/range/b2drange.hxx')
-rw-r--r--basegfx/inc/basegfx/range/b2drange.hxx20
1 files changed, 14 insertions, 6 deletions
diff --git a/basegfx/inc/basegfx/range/b2drange.hxx b/basegfx/inc/basegfx/range/b2drange.hxx
index 85002f6c8956..10f14abe9fd7 100644
--- a/basegfx/inc/basegfx/range/b2drange.hxx
+++ b/basegfx/inc/basegfx/range/b2drange.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: b2drange.hxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: aw $ $Date: 2003-11-06 16:30:26 $
+ * last change: $Author: aw $ $Date: 2003-11-26 14:40:01 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -66,8 +66,8 @@
#include <basegfx/tuple/b2dtuple.hxx>
#endif
-#ifndef _BDRANGE_HXX
-#include <BDRange.hxx>
+#ifndef _BGFX_RANGE_BASICRANGE_HXX
+#include <basegfx/range/basicrange.hxx>
#endif
namespace basegfx
@@ -76,8 +76,8 @@ namespace basegfx
{
class B2DRange
{
- BDRange maRangeX;
- BDRange maRangeY;
+ ::basegfx::range::BasicRange maRangeX;
+ ::basegfx::range::BasicRange maRangeY;
public:
B2DRange()
@@ -140,6 +140,14 @@ namespace basegfx
);
}
+ tuple::B2DTuple getCenter() const
+ {
+ return tuple::B2DTuple(
+ maRangeX.getCenter(),
+ maRangeY.getCenter()
+ );
+ }
+
sal_Bool isInside(const tuple::B2DTuple& rTuple) const
{
return (