Addsy

circle.cpp

Apr 13th, 2015
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.24 KB | None | 0 0
  1. #include "circle.hpp"
  2.  
  3.  
  4. Circle::Circle(const Vector2D& location) :
  5.     Shape(location)
  6. {
  7. vertices_=
  8.         {
  9.  
  10.                 {19.2,  0}, //P1
  11.                 {19.2,  3.84}, //P2
  12.                 {17.664,  7.68}, //P3
  13.                 {15.36,  11.52}, //P4
  14.                 {11.52,  15.36}, //P5
  15.                 {7.68,  17.664}, //P6
  16.                 {3.84,  19.2}, //P7
  17.                 {0,  19.2}, //P8
  18.  
  19.                 {-3.84,  19.2}, //P9
  20.                 {-7.68,  17.664}, //P10
  21.                 {-11.52, 15.36}, //P11
  22.                 {-15.36, 11.52}, //P12
  23.                 {-17.664, 7.68}, //P13
  24.                 {-19.2, 3.84}, //P14
  25.                 {-19.2, 0}, //P15
  26.  
  27.                 {-19.2,  -3.84}, //P16
  28.                 {-17.664,  -7.68}, //P17
  29.                 {-15.36,  -11.52}, //P18
  30.                 {-11.52,  -15.36}, //P19
  31.                 {-7.68,  -17.664}, //P20
  32.                 {-3.84,  -19.2}, //P21
  33.                 {0, -19.2}, //P22
  34.  
  35.                 {3.84,  -19.2}, //P23
  36.                 {7.68,  -17.664}, //P24
  37.                 {11.52, -15.36}, //P25
  38.                 {15.36, -11.52}, //P26
  39.                 {17.664, -7.68}, //P27
  40.                 {19.2, -3.84}, //P28
  41.                 {19.2,  0} //P29
  42.  
  43.         };
  44. }
Advertisement
Add Comment
Please, Sign In to add comment