diff options
author | Pascal Junck <pjunck@openoffice.org> | 2004-11-03 07:35:44 +0000 |
---|---|---|
committer | Pascal Junck <pjunck@openoffice.org> | 2004-11-03 07:35:44 +0000 |
commit | b53ade4fe5fd31c416e983eff93a16dcc8ed73e2 (patch) | |
tree | 316564b8afacf941932a4569c44d1ff6caf7815d /basegfx | |
parent | 1d9fcdeb269a6e4ed1b25e6967ff98c9043316e6 (diff) |
INTEGRATION: CWS aw019 (1.10.20); FILE MERGED
2004/10/06 11:14:08 aw 1.10.20.1: #i34831#
Diffstat (limited to 'basegfx')
-rw-r--r-- | basegfx/inc/basegfx/range/b3drange.hxx | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/basegfx/inc/basegfx/range/b3drange.hxx b/basegfx/inc/basegfx/range/b3drange.hxx index 6712b33594a1..d691fbe84cf5 100644 --- a/basegfx/inc/basegfx/range/b3drange.hxx +++ b/basegfx/inc/basegfx/range/b3drange.hxx @@ -2,9 +2,9 @@ * * $RCSfile: b3drange.hxx,v $ * - * $Revision: 1.10 $ + * $Revision: 1.11 $ * - * last change: $Author: kz $ $Date: 2004-06-10 11:39:31 $ + * last change: $Author: pjunck $ $Date: 2004-11-03 08:35:44 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -78,6 +78,9 @@ namespace basegfx { + // predeclarations + class B3IRange; + class B3DRange { typedef ::basegfx::BasicRange< double, DoubleTraits > MyBasicRange; @@ -103,10 +106,7 @@ namespace basegfx double z1, double x2, double y2, - double z2, - double x3, - double y3, - double z3) + double z2) : maRangeX(x1), maRangeY(y1), maRangeZ(z1) @@ -114,20 +114,15 @@ namespace basegfx maRangeX.expand(x2); maRangeY.expand(y2); maRangeZ.expand(z2); - maRangeX.expand(x3); - maRangeY.expand(y3); - maRangeZ.expand(z3); } B3DRange(const B3DTuple& rTuple1, - const B3DTuple& rTuple2, - const B3DTuple& rTuple3) + const B3DTuple& rTuple2) : maRangeX(rTuple1.getX()), maRangeY(rTuple1.getY()), maRangeZ(rTuple1.getZ()) { expand(rTuple2); - expand(rTuple3); } B3DRange(const B3DRange& rRange) @@ -303,6 +298,12 @@ namespace basegfx maRangeZ.grow(fValue); } }; + + /** Round double to nearest integer for 3D range + + @return the nearest integer for this range + */ + B3IRange fround(const B3DRange& rRange); } // end of namespace basegfx |