1 //----------------------------------------------------------------------------
2 // Anti-Grain Geometry - Version 2.3
3 // Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
5 // Permission to copy, use, modify, sell and distribute this software
6 // is granted provided this copyright notice appears in all copies.
7 // This software is provided "as is" without express or implied
8 // warranty, and with no claim as to its suitability for any purpose.
10 //----------------------------------------------------------------------------
11 // Contact: mcseem@antigrain.com
12 // mcseemagg@yahoo.com
13 // http://www.antigrain.com
14 //----------------------------------------------------------------------------
16 // Arc vertex generator
18 //----------------------------------------------------------------------------
20 #ifndef AGG_ARC_INCLUDED
21 #define AGG_ARC_INCLUDED
24 #include "agg_basics.h"
29 //=====================================================================arc
31 // See Implementation agg_arc.cpp
36 arc() : m_scale(1.0), m_initialized(false) {}
37 arc(double x
, double y
,
42 void init(double x
, double y
,
47 void approximation_scale(double s
);
48 double approximation_scale() const { return m_scale
; }
50 void rewind(unsigned);
51 unsigned vertex(double* x
, double* y
);
54 void normalize(double a1
, double a2
, bool ccw
);