apply_transform
- apply_transform(coords: ndarray, M_rotation: ndarray, v_translation: ndarray) ndarray
Apply a roto-translational transform to a set of points, i.e. the atomic positions of atoms that are to be added from the template to the original reference frame.
- Parameters:
coords ((M, 3) array) – Points to transform.
M_rotation ((3, 3) array) – Rotation matrix.
v_translation ((3,) array) – Translation vector.
- Return v_transformed:
Returns the transformed coordinates: M_rotation @ coords + v_translation.
- Return type:
(M, 3) array