kopia lustrzana https://github.com/jameshball/osci-render
10 wiersze
207 B
C++
10 wiersze
207 B
C++
![]() |
#include "Shape.h"
|
||
|
|
||
|
double Shape::totalLength(std::vector<std::unique_ptr<Shape>>& shapes) {
|
||
|
double length = 0.0;
|
||
|
for (auto& shape : shapes) {
|
||
|
length += shape->length();
|
||
|
}
|
||
|
return length;
|
||
|
}
|