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

Method getPos

source/EngineInterface/DescriptionEditService.cpp:658–664  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

656}
657
658RealVector2D DescriptionEditService::getPos(CellOrParticleDescription const& entity)
659{
660 if (std::holds_alternative<CellDescription>(entity)) {
661 return std::get<CellDescription>(entity).pos;
662 }
663 return std::get<ParticleDescription>(entity).pos;
664}
665
666std::vector<CellOrParticleDescription> DescriptionEditService::getObjects(
667 DataDescription const& data)

Callers 2

onInspectObjectsMethod · 0.80
processMethod · 0.80

Calls

no outgoing calls

Tested by 1

processMethod · 0.64