summaryrefslogtreecommitdiff
path: root/basegfx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2005-01-13 16:59:51 +0000
committerKurt Zenker <kz@openoffice.org>2005-01-13 16:59:51 +0000
commit786d48727a8b5f32d3b60226e7b32d67dc09bfda (patch)
tree59c9852375990ad96b72f339b3293c22eb1f898b /basegfx
parent6f474e1a6031518d04cd9bb9de0d120684443cfa (diff)
INTEGRATION: CWS presperf01 (1.13.2); FILE MERGED
2004/12/17 22:37:34 thb 1.13.2.1: #i36093# Added createPolygonFromEllipse(), mapped createPolygonFromCircle to that. Added some more files in source/tools
Diffstat (limited to 'basegfx')
-rw-r--r--basegfx/inc/basegfx/polygon/b2dpolygontools.hxx25
1 files changed, 20 insertions, 5 deletions
diff --git a/basegfx/inc/basegfx/polygon/b2dpolygontools.hxx b/basegfx/inc/basegfx/polygon/b2dpolygontools.hxx
index 589450c352ac..6969cf77e9b7 100644
--- a/basegfx/inc/basegfx/polygon/b2dpolygontools.hxx
+++ b/basegfx/inc/basegfx/polygon/b2dpolygontools.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: b2dpolygontools.hxx,v $
*
- * $Revision: 1.14 $
+ * $Revision: 1.15 $
*
- * last change: $Author: rt $ $Date: 2004-12-13 08:47:25 $
+ * last change: $Author: kz $ $Date: 2005-01-13 17:59:51 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -244,9 +244,7 @@ namespace basegfx
This method creates a circle approximation consisting of
four cubic bezier segments, which approximate the given
- circle with an error of less than 0.5 percent. To create
- ellipses, simply scale the resulting circle
- anisotrophically.
+ circle with an error of less than 0.5 percent.
@param rCenter
Center point of the circle
@@ -256,6 +254,23 @@ namespace basegfx
*/
B2DPolygon createPolygonFromCircle( const B2DPoint& rCenter, double nRadius );
+ /** Create an ellipse polygon with given radii.
+
+ This method creates an ellipse approximation consisting of
+ four cubic bezier segments, which approximate the given
+ ellipse with an error of less than 0.5 percent.
+
+ @param rCenter
+ Center point of the circle
+
+ @param nRadiusX
+ Radius of the ellipse in X direction
+
+ @param nRadiusY
+ Radius of the ellipse in Y direction
+ */
+ B2DPolygon createPolygonFromEllipse( const B2DPoint& rCenter, double nRadiusX, double nRadiusY );
+
} // end of namespace tools
} // end of namespace basegfx