use of gaiasky.util.coord.AbstractOrbitCoordinates in project gaiasky by langurmonkey.
the class EventScriptingInterface method setOrbitCoordinatesScaling.
@Override
public void setOrbitCoordinatesScaling(String name, double scalingFactor) {
int modified = 0;
List<AbstractOrbitCoordinates> aocs = AbstractOrbitCoordinates.getInstances();
for (AbstractOrbitCoordinates aoc : aocs) {
if (aoc.getClass().getSimpleName().equalsIgnoreCase(name)) {
aoc.setScaling(scalingFactor);
modified++;
}
}
logger.info("Modified scaling of " + modified + " orbits");
}
Aggregations