MCPcopy Create free account
hub / github.com/chrxh/alien / getClusterPosFromCells

Method getClusterPosFromCells

source/EngineInterface/Descriptions.cpp:86–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86RealVector2D ClusterDescription::getClusterPosFromCells() const
87{
88 RealVector2D result;
89 for (auto const& cell : cells) {
90 result += cell.pos;
91 }
92 result /= cells.size();
93 return result;
94}
95
96void ClusteredDataDescription::setCenter(RealVector2D const& center)
97{

Callers 1

duplicateMethod · 0.80

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected