translate
#
- biotite.structure.translate(atoms, vector)[source]#
Translate the given atoms or coordinates by a given vector.
- Parameters:
- atomsAtom or AtomArray or AtomArrayStack or ndarray, shape=(3,) or shape=(n,3) or shape=(m,n,3)
The atoms of which the coordinates are transformed. The coordinates can be directly provided as
ndarray
.- vector: array-like, shape=(3,) or shape=(n,3) or shape=(m,n,3)
The translation vector \((x, y, z)\).
- Returns:
- transformedAtom or AtomArray or AtomArrayStack or ndarray, shape=(3,) or shape=(n,3) or shape=(m,n,3)
A copy of the input atoms or coordinates, translated by the given vector.