Advertisement
Neveles

© 2020 Neveles. All rights reserved.

May 30th, 2020
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.66 KB | None | 0 0
  1.   std::shared_ptr<fokin::Shape> testRectangle1 =
  2.     std::make_shared<fokin::Rectangle>(4.0, 4.0, fokin::point_t{ 0.0, 0.0 });
  3.  
  4.   std::shared_ptr<fokin::Shape> testRectangle2 =
  5.     std::make_shared<fokin::Rectangle>(1.0, 1.0, fokin::point_t{ 8.0, 8.0 });
  6.  
  7.   std::shared_ptr<fokin::Shape> testCircle1 =
  8.     std::make_shared<fokin::Circle>(fokin::point_t{ 8.0, 7.0 }, 2.0);
  9.  
  10.   std::shared_ptr<fokin::Shape> testCircle2 =
  11.     std::make_shared<fokin::Circle>(fokin::point_t{ 0.0, 0.0 }, 3.0);
  12.  
  13.   fokin::MatrixShape testMatrix;
  14.   testMatrix.addShape(testRectangle1);
  15.   testMatrix.addShape(testRectangle2);
  16.   testMatrix.addShape(testCircle1);
  17.   testMatrix.addShape(testCircle2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement