def get_transformation(self, coordinates):
atom1, atom2 = self.hinge_atoms<EOL>center = coordinates[atom1]<EOL>axis = coordinates[atom1] - coordinates[atom2]<EOL>axis /= np.linalg.norm(axis)<EOL>angle = np.random.uniform(-self.max_amplitude, self.max_amplitude)<EOL>return Complete.about_axis(center, angle, axis)<EOL>
Construct a transformation object