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

Method shift

source/EngineInterface/Descriptions.cpp:121–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121void ClusteredDataDescription::shift(RealVector2D const& delta)
122{
123 for (auto& cluster : clusters) {
124 for (auto& cell : cluster.cells) {
125 cell.pos += delta;
126 }
127 }
128 for (auto& particle : particles) {
129 particle.pos += delta;
130 }
131}
132
133int ClusteredDataDescription::getNumberOfCellAndParticles() const
134{

Callers 2

gridMultiplyMethod · 0.80
randomMultiplyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected