13 const Kreis a( 0.0F, 1.0F, 2.1F);
16 cout << endl << a << endl << b << endl;
34 sort(v.begin(),v.end(),
kleiner);
35 for (
const auto pi : v) { cout << *pi << endl; } cout <<
"-------------\n";
38 sort(v.begin(),v.end(),
39 [](
const Form *aa,
const Form *bb) ->
bool
41 return aa->area() > bb->area();
44 for (
auto *
const pi : v) { cout << *pi << endl; } cout <<
"-------------\n";
47 vector<vector<float>> distmatrix(v.size());
48 for (
auto &di : distmatrix ) di.resize(v.size());
53 for (
size_t i=0; i<v.size(); ++i)
55 for (
size_t j=0; j<v.size(); ++j)
58 cout << i <<
" " << j <<
" " << distmatrix[i][j] << endl;
64 cout.setf(ios::fixed, ios::floatfield);
65 for (
const auto &vi: distmatrix)
67 for (
const auto vj: vi)
77 for (
auto &pi : v) {
delete pi;}
std::string classname() const override
Contains the description of a polygon, now with mutable. The traverse is stored.
std::string classname() const override