get_vectors_mesh#
- pyxem.utils.vectors.get_vectors_mesh(g1_norm, g2_norm, g_norm_max, angle=0.0, shear=0.0)[source]#
Calculate vectors coordinates of a mesh defined by a norm, a rotation and a shear component.
- Parameters:
g1_norm, g2_norm (float) – The norm of the two vectors of the mesh.
g_norm_max (float) – The maximum value for the norm of each vector.
angle (float, optional) – The rotation of the mesh in degree.
shear (float, optional) – The shear of the mesh. It must be in the interval [0, 1]. The default is 0.0.
- Returns:
x and y coordinates of the vectors of the mesh
- Return type: