22 auto x0 = imsize/2 - 20;
23 auto y0 = imsize/2 - 50;
27 for(
int i=0; i<nbim; i++ )
31 auto angle = i * 360. /nbim;
36 auto x1 = std::cos(angle1)*kx1;
37 auto y1 = std::sin(angle1)*ky1;
40 auto x2 = std::cos(angle2)*kx2;
41 auto y2 = std::sin(angle2)*ky2;
44 Point2d ptv2( x0+x2+100, y0+y2 );
57 std::ostringstream oss;
58 oss <<
"showcase16b_" << std::setfill(
'0') << std::setw(2) << i <<
".svg";
59 im.write( oss.str() );
#define M_PI
Definition: homog2d.hpp:235
Draw parameters, independent of back-end library.
Definition: homog2d.hpp:514
HOMOG2D_INUMTYPE angle(const Ellipse_< FPT > &ell)
Return angle of ellipse (free function)
Definition: homog2d.hpp:10993
Point2d_< HOMOG2D_INUMTYPE > Point2d
Default point type, uses double as numerical type.
Definition: homog2d.hpp:12379
img::Image< img::SvgImage > im(300, 400)
Opaque data structure, will hold the image type, depending on back-end library. This type is the one ...
Definition: homog2d.hpp:712
A line segment, oriented (OSegment_) or not (Segment_). Holds the two points.
Definition: homog2d.hpp:366
const char * getString(PtStyle t)
Definition: homog2d.hpp:496
Base class, will be instanciated as Point2d_ or Line2d_.
Definition: homog2d.hpp:365