Convert from the lengths/angles of the unit cell to the box vectors (Bravais vectors). The angles should be in degrees.
Parameters: | a_length : scalar or np.ndarray
b_length : scalar or np.ndarray
c_length : scalar or np.ndarray
alpha : scalar or np.ndarray
beta : scalar or np.ndarray
gamma : scalar or np.ndarray
|
---|---|
Returns: | a : np.ndarray
b : np.ndarray
c : np.ndarray
|
Notes
This code is adapted from gyroid, which is licensed under the BSD http://pythonhosted.org/gyroid/_modules/gyroid/unitcell.html
Examples
>>> import numpy as np
>>> result = lengths_and_angles_to_box_vectors(1, 1, 1, 90.0, 90.0, 90.0)