fraction_to_coord#
- biotite.structure.fraction_to_coord(fraction: ndarray[tuple[XYZ], dtype[floating]] | ndarray[tuple[N, XYZ], dtype[floating]] | ndarray[tuple[M, N, XYZ], dtype[floating]], box: ndarray[tuple[XYZ, XYZ], dtype[floating]] | ndarray[tuple[M, XYZ, XYZ], dtype[floating]]) ndarray[tuple[XYZ], dtype[floating]] | ndarray[tuple[N, XYZ], dtype[floating]] | ndarray[tuple[M, N, XYZ], dtype[floating]][source]#
Transform fractions of box vectors to coordinates.
This is the reverse operation of
coord_to_fraction().- Parameters:
- fractionndarray, dtype=float, shape=(3,) or shape=(n,3) or shape=(m,n,3)
The fractions of the box vectors for one or multiple models.
- boxndarray, dtype=float, shape=(3,3) or shape=(m,3,3)
The box(es) for one or multiple models. When coord is given for multiple models,
boxmust be given for multiple models as well.
- Returns:
- coordndarray, dtype=float, shape=(3,) or shape=(n,3) or shape=(m,n,3)
The coordinates.
See also
coord_to_fractionThe reverse operation.