diff options
author | Pascal Junck <pjunck@openoffice.org> | 2004-11-03 07:36:23 +0000 |
---|---|---|
committer | Pascal Junck <pjunck@openoffice.org> | 2004-11-03 07:36:23 +0000 |
commit | 2463a7a6371261d410f5383e42555147df23ff5b (patch) | |
tree | 40d246c8c9c399656e39e85cccbe7d92d22416fa /basegfx | |
parent | 1f8de65901e99c76f68a0421c417cd446678067e (diff) |
INTEGRATION: CWS aw019 (1.9.14); FILE MERGED
2004/10/06 11:14:08 aw 1.9.14.1: #i34831#
Diffstat (limited to 'basegfx')
-rw-r--r-- | basegfx/inc/basegfx/tuple/b2dtuple.hxx | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/basegfx/inc/basegfx/tuple/b2dtuple.hxx b/basegfx/inc/basegfx/tuple/b2dtuple.hxx index 3c07c2b52f29..581e7fb41e8d 100644 --- a/basegfx/inc/basegfx/tuple/b2dtuple.hxx +++ b/basegfx/inc/basegfx/tuple/b2dtuple.hxx @@ -2,9 +2,9 @@ * * $RCSfile: b2dtuple.hxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: hjs $ $Date: 2004-06-25 17:16:14 $ + * last change: $Author: pjunck $ $Date: 2004-11-03 08:36:23 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -70,12 +70,11 @@ #include <math.h> #endif -#ifndef _BGFX_TUPLE_B2ITUPLE_HXX -#include <basegfx/tuple/b2ituple.hxx> -#endif - namespace basegfx { + // predeclarations + class B2ITuple; + /** Base class for all Points/Vectors with two double values This class provides all methods common to Point @@ -130,10 +129,7 @@ namespace basegfx @param rTup The 2D Tuple which will be copied. */ - B2DTuple(const B2ITuple& rTup) - : mfX( rTup.getX() ), - mfY( rTup.getY() ) - {} + B2DTuple(const B2ITuple& rTup); ~B2DTuple() {} @@ -371,6 +367,12 @@ namespace basegfx aNew /= aTmp; return aNew; } + + /** Round double to nearest integer for 2D tuple + + @return the nearest integer for this tuple + */ + B2ITuple fround(const B2DTuple& rTup); } // end of namespace basegfx #endif /* _BGFX_TUPLE_B2DTUPLE_HXX */ |