Chandra-MARX / marxs

Multi-Architecture-Raytrace-Xraymission-Simulator
http://marxs.readthedocs.io/en/latest/
GNU General Public License v3.0
6 stars 9 forks source link

Add method move_center to simulator.Parallel #169

Closed hamogu closed 6 years ago

hamogu commented 6 years ago

This method can move the relative origin of the coordinate system. Individual element positions in elem_pos are relative to the global pos4d of this object. This function changes the pos4d and adjusts the elem_pos accordingly, so that the elements still have the same position in global coordinates.

This function is useful when studying uncertainties. The attribute uncertainty can be used to apply the same change to all elements. Any rotation will be applied around the reference position contained in pos4d. Use this function to change that reference position.