summaryrefslogtreecommitdiff
path: root/basegfx
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2004-11-26 17:34:57 +0000
committerRüdiger Timm <rt@openoffice.org>2004-11-26 17:34:57 +0000
commit81fffbb36274846bc5c42d77d39dca31c8499bb0 (patch)
treed2ede84aeacced966bc6e63a7ef5b4bdb5045f64 /basegfx
parent47e2b95750632d2b217b9b878684fb9251b5b31c (diff)
INTEGRATION: CWS presentationengine01 (1.10.12); FILE MERGED
2004/11/17 18:53:42 thb 1.10.12.3: RESYNC: (1.10-1.11); FILE MERGED 2004/09/23 20:19:06 thb 1.10.12.2: #110496# Added intersect method to all range types 2004/09/22 16:58:37 thb 1.10.12.1: #110496# Added coordinate-wise center accessors
Diffstat (limited to 'basegfx')
-rw-r--r--basegfx/inc/basegfx/range/b2drange.hxx22
1 files changed, 20 insertions, 2 deletions
diff --git a/basegfx/inc/basegfx/range/b2drange.hxx b/basegfx/inc/basegfx/range/b2drange.hxx
index 2fee456cc5b0..7d1a05f51f34 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.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: pjunck $ $Date: 2004-11-03 08:35:14 $
+ * last change: $Author: rt $ $Date: 2004-11-26 18:34:57 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -124,6 +124,8 @@ namespace basegfx
{
}
+ explicit B2DRange(const B2IRange& rRange);
+
bool isEmpty() const
{
return (
@@ -218,6 +220,16 @@ namespace basegfx
);
}
+ double getCenterX() const
+ {
+ return maRangeX.getCenter();
+ }
+
+ double getCenterY() const
+ {
+ return maRangeY.getCenter();
+ }
+
bool isInside(const B2DTuple& rTuple) const
{
return (
@@ -254,6 +266,12 @@ namespace basegfx
maRangeY.expand(rRange.maRangeY);
}
+ void intersect(const B2DRange& rRange)
+ {
+ maRangeX.intersect(rRange.maRangeX);
+ maRangeY.intersect(rRange.maRangeY);
+ }
+
void grow(double fValue)
{
maRangeX.grow(fValue);