21 Circle cir1( 120, 80, 25 );
23 for(
int i=0; i<nbim; i++ )
26 auto x1 = std::cos(
angle)*k1;
27 auto y1 = std::sin(
angle)*k1;
28 auto rad = rad_0 + std::sin(
angle)*k2;
48 std::ostringstream oss;
49 oss <<
"showcase9_" << std::setfill(
'0') << std::setw(2) <<i <<
".svg";
50 im.write( oss.str() );
A circle.
Definition: homog2d.hpp:378
void draw(Data &data)
Definition: precision_test_opencv.cpp:184
Segment seg
Definition: homog2d_test.cpp:4033
#define M_PI
Definition: homog2d.hpp:235
void draw(img::Image< cv::Mat > &, img::DrawParams dp=img::DrawParams()) const
Definition: homog2d.hpp:11868
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
std::pair< Segment_< FPT1 >, Segment_< FPT1 > > getTanSegs(const Circle_< FPT1 > &c1, const Circle_< FPT2 > &c2)
Free function, returns the pair of segments tangential to the two circles.
Definition: homog2d.hpp:10793
Segment_< typename T1::FType > getSegment(const T1 &c1, const T2 &c2)
Free function, returns segment between two circle centers (or ellipse)
Definition: homog2d.hpp:10688
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
PointPair_< FPT > getPts() const
Returns the points of segment as a std::pair.
Definition: homog2d.hpp:5197
FRect_< HOMOG2D_INUMTYPE > getBB(const T &t)
Return Bounding Box of primitive or container holding primitives (free function)
Definition: homog2d.hpp:10312
DrawParams & setColor(uint8_t r, uint8_t g, uint8_t b)
Definition: homog2d.hpp:605
auto getLine() const
Returns supporting line.
Definition: homog2d.hpp:5252