def get_transformation(self, coordinates):
atom1, atom2 = self.hinge_atoms<EOL>direction = coordinates[atom1] - coordinates[atom2]<EOL>direction /= np.linalg.norm(direction)<EOL>direction *= np.random.uniform(-self.max_amplitude, self.max_amplitude)<EOL>result = Translation(direction)<EOL>return result<EOL>
Construct a transformation object